# Uses of Interface
org.springframework.web.servlet.function.RouterFunctions.Builder

Packages that use RouterFunctions.Builder
Package
Description
org.springframework.web.servlet.function
Provides the types that make up Spring's functional web framework for Servlet environments.

## Uses of RouterFunctions.Builder in org.springframework.web.servlet.function

Methods in org.springframework.web.servlet.function that return RouterFunctions.Builder
Modifier and Type
Method
Description
`RouterFunctions.Builder`
RouterFunctions.Builder.`add(RouterFunction<ServerResponse> routerFunction)`
Adds the given route to this builder.
`RouterFunctions.Builder`
RouterFunctions.Builder.`after(BiFunction<ServerRequest,ServerResponse,ServerResponse> responseProcessor)`
Filter the response object for all routes created by this builder with the given response processing function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`before(Function<ServerRequest,ServerRequest> requestProcessor)`
Filter the request object for all routes created by this builder with the given request processing function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`DELETE(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `DELETE` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`DELETE(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `DELETE` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`DELETE(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `DELETE` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`DELETE(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `DELETE` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`filter(HandlerFilterFunction<ServerResponse,ServerResponse> filterFunction)`
Filters all routes created by this builder with the given filter function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`GET(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `GET` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`GET(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `GET` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`GET(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `GET` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`GET(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `GET` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`HEAD(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `HEAD` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`HEAD(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `HEAD` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`HEAD(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `HEAD` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`HEAD(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `HEAD` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`nest(RequestPredicate predicate, Consumer<RouterFunctions.Builder> builderConsumer)`
Route to a built router function if the given request predicate applies.
`RouterFunctions.Builder`
RouterFunctions.Builder.`nest(RequestPredicate predicate, Supplier<RouterFunction<ServerResponse>> routerFunctionSupplier)`
Route to the supplied router function if the given request predicate applies.
`RouterFunctions.Builder`
RouterFunctions.Builder.`onError(Class<? extends Throwable> exceptionType, BiFunction<Throwable,ServerRequest,ServerResponse> responseProvider)`
Filters all exceptions of the given type by applying the given response provider function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`onError(Predicate<Throwable> predicate, BiFunction<Throwable,ServerRequest,ServerResponse> responseProvider)`
Filters all exceptions that match the predicate by applying the given response provider function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`OPTIONS(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `OPTIONS` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`OPTIONS(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `OPTIONS` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`OPTIONS(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `OPTIONS` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`OPTIONS(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `OPTIONS` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PATCH(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `PATCH` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PATCH(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `PATCH` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PATCH(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `PATCH` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PATCH(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `PATCH` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`path(String pattern, Consumer<RouterFunctions.Builder> builderConsumer)`
Route to a built router function if the given path prefix pattern applies.
`RouterFunctions.Builder`
RouterFunctions.Builder.`path(String pattern, Supplier<RouterFunction<ServerResponse>> routerFunctionSupplier)`
Route to the supplied router function if the given path prefix pattern applies.
`RouterFunctions.Builder`
RouterFunctions.Builder.`POST(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `POST` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`POST(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `POST` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`POST(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `POST` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`POST(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `POST` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PUT(String pattern, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `PUT` requests that match the given pattern.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PUT(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `PUT` requests that match the given pattern and predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PUT(HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles HTTP `PUT` requests.
`RouterFunctions.Builder`
RouterFunctions.Builder.`PUT(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all HTTP `PUT` requests that match the given predicate.
`RouterFunctions.Builder`
RouterFunctions.Builder.`resource(RequestPredicate predicate, org.springframework.core.io.Resource resource)`
Route requests that match the given predicate to the given resource.
`RouterFunctions.Builder`
RouterFunctions.Builder.`resource(RequestPredicate predicate, org.springframework.core.io.Resource resource, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)`
Route requests that match the given predicate to the given resource.
`RouterFunctions.Builder`
RouterFunctions.Builder.`resources(String pattern, org.springframework.core.io.Resource location)`
Route requests that match the given pattern to resources relative to the given root location.
`RouterFunctions.Builder`
RouterFunctions.Builder.`resources(String pattern, org.springframework.core.io.Resource location, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)`
Route requests that match the given pattern to resources relative to the given root location.
`RouterFunctions.Builder`
RouterFunctions.Builder.`resources(Function<ServerRequest,Optional<org.springframework.core.io.Resource>> lookupFunction)`
Route to resources using the provided lookup function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`resources(Function<ServerRequest,Optional<org.springframework.core.io.Resource>> lookupFunction, BiConsumer<org.springframework.core.io.Resource,org.springframework.http.HttpHeaders> headersConsumer)`
Route to resources using the provided lookup function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`route(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction)`
Adds a route to the given handler function that handles all requests that match the given predicate.
`static RouterFunctions.Builder`
RouterFunctions.`route()`
Offers a discoverable way to create router functions through a builder-style interface.
`RouterFunctions.Builder`
RouterFunctions.Builder.`withAttribute(String name, Object value)`
Add an attribute with the given name and value to the last route built with this builder.
`RouterFunctions.Builder`
RouterFunctions.Builder.`withAttributes(Consumer<Map<String,Object>> attributesConsumer)`
Manipulate the attributes of the last route built with the given consumer.
Method parameters in org.springframework.web.servlet.function with type arguments of type RouterFunctions.Builder
Modifier and Type
Method
Description
`RouterFunctions.Builder`
RouterFunctions.Builder.`nest(RequestPredicate predicate, Consumer<RouterFunctions.Builder> builderConsumer)`
Route to a built router function if the given request predicate applies.
`RouterFunctions.Builder`
RouterFunctions.Builder.`path(String pattern, Consumer<RouterFunctions.Builder> builderConsumer)`
Route to a built router function if the given path prefix pattern applies.