public abstract class RouterFunctions
Central entry point to Spring's functional web framework.
Exposes routing functionality, such as to create a
RouterFunction using a discoverable builder-style API, to
create a RouterFunction
given a RequestPredicate and HandlerFunction, and to do further
subrouting on an existing routing
Additionally, this class can transform a
RouterFunction into an HttpHandler, which can be run in Servlet 3.1+,
Reactor, or Undertow.
Route to the given router function if the given request predicate applies. This method can be
used to create nested routes, where a group of routes share a common path
(prefix), header, or other request predicate.
For instance, the following example first creates a composed route that resolves to
listUsers for a GET, and createUser for a POST. This composed route then gets
nested with a "/user" path predicate, so that GET requests for "/user" will list users,
and POST request for "/user" will create a new user.
Route to resources using the provided lookup function. If the lookup function provides a
Resource for the given request, it will be it will be exposed using a
HandlerFunction that handles GET, HEAD, and OPTIONS requests.