# Uses of Interface
org.springframework.web.servlet.function.HandlerFilterFunction

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

## Uses of HandlerFilterFunction in org.springframework.web.servlet.function

Methods in org.springframework.web.servlet.function that return HandlerFilterFunction
Modifier and Type
Method
Description
`default HandlerFilterFunction<T,R>`
HandlerFilterFunction.`andThen(HandlerFilterFunction<T,T> after)`
Return a composed filter function that first applies this filter, and then applies the `after` filter.
`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, 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`.
Methods in org.springframework.web.servlet.function with parameters of type HandlerFilterFunction
Modifier and Type
Method
Description
`default HandlerFilterFunction<T,R>`
HandlerFilterFunction.`andThen(HandlerFilterFunction<T,T> after)`
Return a composed filter function that first applies this filter, and then applies the `after` filter.
`default <S extends ServerResponse>
RouterFunction<S>`
RouterFunction.`filter(HandlerFilterFunction<T,S> filterFunction)`
Filter all handler functions routed by this function with the given filter function.
`RouterFunctions.Builder`
RouterFunctions.Builder.`filter(HandlerFilterFunction<ServerResponse,ServerResponse> filterFunction)`
Filters all routes created by this builder with the given filter function.