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.before(Function<ServerRequest,ServerRequest> requestProcessor) | Filter the request object for all routes created by this builder with the given request processing function. |
---|
static <T extends ServerResponse> HandlerFilterFunction<T,T> | HandlerFilterFunction.ofErrorHandler(Predicate<Throwable> predicate, BiFunction<Throwable,ServerRequest,T> errorHandler) | Adapt the given predicate and response provider function to a filter function that returns a ServerResponse on a given exception. |
---|
static <T extends ServerResponse> HandlerFilterFunction<T,T> | HandlerFilterFunction.ofRequestProcessor(Function<ServerRequest,ServerRequest> requestProcessor) | Adapt the given request processor function to a filter function that only operates on the ServerRequest . |
---|
static <T extends ServerResponse> HandlerFilterFunction<T,T> | HandlerFilterFunction.ofRequestProcessor(Function<ServerRequest,ServerRequest> requestProcessor) | Adapt the given request processor function to a filter function that only operates on the ServerRequest . |
---|
static <T extends ServerResponse,R extends ServerResponse> HandlerFilterFunction<T,R> | HandlerFilterFunction.ofResponseProcessor(BiFunction<ServerRequest,T,R> responseProcessor) | Adapt the given response processor function to a filter function that only operates on the ServerResponse . |
---|
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.resources(Function<ServerRequest,Optional<Resource>> lookupFunction) | Route to resources using the provided lookup function. |
---|
static RouterFunction<ServerResponse> | RouterFunctions.resources(Function<ServerRequest,Optional<Resource>> lookupFunction) | Route to resources using the provided lookup function. |
---|
void | RouterFunctions.Visitor.resources(Function<ServerRequest,Optional<Resource>> lookupFunction) | Receive notification of a resource router function. |
---|