接口的使用
cn.taketoday.web.handler.function.HandlerFunction
使用HandlerFunction的程序包
程序包
说明
Provides the types that make up Infra functional web framework.
-
cn.taketoday.web.handler.function中HandlerFunction的使用
修饰符和类型方法说明default HandlerFunction<R>HandlerFilterFunction.apply(HandlerFunction<T> handler) Apply this filter to the given handler function, resulting in a filtered handler function.返回变量类型为HandlerFunction的类型的cn.taketoday.web.handler.function中的方法修饰符和类型方法说明RouterFunction.route(ServerRequest request) Return the handler function that matches the given request.RouterFunctionBuilder.BuiltRouterFunction.route(ServerRequest request) RouterFunctions.AttributesRouterFunction.route(ServerRequest request) RouterFunctions.DefaultNestedRouterFunction.route(ServerRequest serverRequest) RouterFunctions.DefaultRouterFunction.route(ServerRequest request) RouterFunctions.DifferentComposedRouterFunction.route(ServerRequest request) RouterFunctions.FilteredRouterFunction.route(ServerRequest request) RouterFunctions.ResourcesRouterFunction.route(ServerRequest request) RouterFunctions.SameComposedRouterFunction.route(ServerRequest request) 修饰符和类型方法说明private RouterFunctions.BuilderRouterFunctionBuilder.add(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) default RouterFunction<T>RouterFunction.andRoute(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Return a composed routing function that routes to the given handler function if this route does not match and the given request predicate applies.default HandlerFunction<R>HandlerFilterFunction.apply(HandlerFunction<T> handler) Apply this filter to the given handler function, resulting in a filtered handler function.RouterFunctionBuilder.DELETE(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.DELETE(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.DELETE(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.DELETE(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.DELETE(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPDELETErequests.RouterFunctions.Builder.DELETE(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPDELETErequests that match the given predicate.RouterFunctions.Builder.DELETE(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPDELETErequests that match the given pattern.RouterFunctions.Builder.DELETE(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPDELETErequests that match the given pattern and predicate.HandlerFilterFunction.filter(ServerRequest request, HandlerFunction<T> next) Apply this filter to the given handler function.RouterFunctionBuilder.GET(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.GET(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.GET(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.GET(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.GET(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPGETrequests.RouterFunctions.Builder.GET(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPGETrequests that match the given predicate.RouterFunctions.Builder.GET(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPGETrequests that match the given pattern.RouterFunctions.Builder.GET(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPGETrequests that match the given pattern and predicate.RouterFunctionBuilder.HEAD(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.HEAD(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.HEAD(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.HEAD(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.HEAD(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPHEADrequests.RouterFunctions.Builder.HEAD(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPHEADrequests that match the given predicate.RouterFunctions.Builder.HEAD(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPHEADrequests that match the given pattern.RouterFunctions.Builder.HEAD(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPHEADrequests that match the given pattern and predicate.RouterFunctionBuilder.OPTIONS(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.OPTIONS(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.OPTIONS(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.OPTIONS(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.OPTIONS(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPOPTIONSrequests.RouterFunctions.Builder.OPTIONS(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPOPTIONSrequests that match the given predicate.RouterFunctions.Builder.OPTIONS(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPOPTIONSrequests that match the given pattern.RouterFunctions.Builder.OPTIONS(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPOPTIONSrequests that match the given pattern and predicate.RouterFunctionBuilder.PATCH(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.PATCH(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.PATCH(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.PATCH(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.PATCH(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPPATCHrequests.RouterFunctions.Builder.PATCH(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPATCHrequests that match the given predicate.RouterFunctions.Builder.PATCH(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPATCHrequests that match the given pattern.RouterFunctions.Builder.PATCH(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPATCHrequests that match the given pattern and predicate.RouterFunctionBuilder.POST(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.POST(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.POST(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.POST(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.POST(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPPOSTrequests.RouterFunctions.Builder.POST(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPOSTrequests that match the given predicate.RouterFunctions.Builder.POST(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPOSTrequests that match the given pattern.RouterFunctions.Builder.POST(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPOSTrequests that match the given pattern and predicate.RouterFunctionBuilder.PUT(HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.PUT(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.PUT(String pattern, HandlerFunction<ServerResponse> handlerFunction) RouterFunctionBuilder.PUT(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) RouterFunctions.Builder.PUT(HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles HTTPPUTrequests.RouterFunctions.Builder.PUT(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPUTrequests that match the given predicate.RouterFunctions.Builder.PUT(String pattern, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPUTrequests that match the given pattern.RouterFunctions.Builder.PUT(String pattern, RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) Adds a route to the given handler function that handles all HTTPPUTrequests that match the given pattern and predicate.voidChangePathPatternParserVisitor.route(RequestPredicate predicate, HandlerFunction<?> handlerFunction) RouterFunctionBuilder.route(RequestPredicate predicate, HandlerFunction<ServerResponse> handlerFunction) 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 <T extends ServerResponse>
RouterFunction<T>RouterFunctions.route(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Route to the given handler function if the given request predicate applies.voidRouterFunctions.Visitor.route(RequestPredicate predicate, HandlerFunction<?> handlerFunction) Receive notification of a standard predicated route to a handler function.voidToStringVisitor.route(RequestPredicate predicate, HandlerFunction<?> handlerFunction)