接口的使用
cn.taketoday.web.handler.function.HandlerFilterFunction
使用HandlerFilterFunction的程序包
程序包
说明
Provides the types that make up Infra functional web framework.
-
cn.taketoday.web.handler.function中HandlerFilterFunction的使用
修饰符和类型字段说明private final HandlerFilterFunction<T,S> RouterFunctions.FilteredRouterFunction.filterFunction修饰符和类型字段说明private final ArrayList<HandlerFilterFunction<ServerResponse,ServerResponse>> RouterFunctionBuilder.errorHandlersprivate final ArrayList<HandlerFilterFunction<ServerResponse,ServerResponse>> RouterFunctionBuilder.filterFunctions修饰符和类型方法说明default HandlerFilterFunction<T,R> HandlerFilterFunction.andThen(HandlerFilterFunction<T, T> after) Return a composed filter function that first applies this filter, and then applies theafterfilter.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 aServerResponseon 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 theServerRequest.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 theServerResponse.修饰符和类型方法说明default HandlerFilterFunction<T,R> HandlerFilterFunction.andThen(HandlerFilterFunction<T, T> after) Return a composed filter function that first applies this filter, and then applies theafterfilter.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.RouterFunctionBuilder.filter(HandlerFilterFunction<ServerResponse, ServerResponse> filterFunction) RouterFunctions.Builder.filter(HandlerFilterFunction<ServerResponse, ServerResponse> filterFunction) Filters all routes created by this builder with the given filter function.限定符构造器说明FilteredRouterFunction(RouterFunction<T> routerFunction, HandlerFilterFunction<T, S> filterFunction)