Uses of Interface
org.springframework.web.servlet.function.RequestPredicate
Packages that use RequestPredicate
Package
Description
Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of RequestPredicate in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function that return RequestPredicateModifier and TypeMethodDescriptionstatic RequestPredicateReturn aRequestPredicatethat tests if the request's accept header is compatible with any of the given media types.static RequestPredicateRequestPredicates.all()Return aRequestPredicatethat always matches.default RequestPredicateRequestPredicate.and(RequestPredicate other) Return a composed request predicate that tests against both this predicate AND theotherpredicate.static RequestPredicateRequestPredicates.contentType(MediaType... mediaTypes) Return aRequestPredicatethat tests if the request's content type is included by any of the given media types.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isDELETEand the givenpatternmatches against the request path.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isGETand the givenpatternmatches against the request path.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isHEADand the givenpatternmatches against the request path.static RequestPredicateRequestPredicates.headers(Predicate<ServerRequest.Headers> headersPredicate) Return aRequestPredicatethat tests the request's headers against the given headers predicate.static RequestPredicateRequestPredicates.method(HttpMethod httpMethod) Return aRequestPredicatethat matches if the request's HTTP method is equal to the given method.static RequestPredicateRequestPredicates.methods(HttpMethod... httpMethods) Return aRequestPredicatethat matches if the request's HTTP method is equal to one the of the given methods.default RequestPredicateRequestPredicate.negate()Return a predicate that represents the logical negation of this predicate.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isOPTIONSand the givenpatternmatches against the request path.default RequestPredicateRequestPredicate.or(RequestPredicate other) Return a composed request predicate that tests against both this predicate OR theotherpredicate.static RequestPredicateReturn aRequestPredicatethat matches if the request's parameter of the given name has the given value.static RequestPredicateReturn aRequestPredicatethat tests the request's parameter of the given name against the given predicate.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isPATCHand the givenpatternmatches against the request path.static RequestPredicateReturn aRequestPredicatethat tests the request path against the given path pattern.static RequestPredicateRequestPredicates.pathExtension(String extension) Return aRequestPredicatethat matches if the request's path has the given extension.static RequestPredicateRequestPredicates.pathExtension(Predicate<String> extensionPredicate) Return aRequestPredicatethat matches if the request's path matches the given predicate.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isPOSTand the givenpatternmatches against the request path.static RequestPredicateReturn aRequestPredicatethat matches if request's HTTP method isPUTand the givenpatternmatches against the request path.Methods in org.springframework.web.servlet.function that return types with arguments of type RequestPredicateModifier and TypeMethodDescriptionstatic Function<String,RequestPredicate> RequestPredicates.pathPredicates(PathPatternParser patternParser) Return a function that creates new path-matchingRequestPredicatesfrom pattern Strings using the givenPathPatternParser.Methods in org.springframework.web.servlet.function with parameters of type RequestPredicateModifier and TypeMethodDescriptiondefault RequestPredicateRequestPredicate.and(RequestPredicate other) Return a composed request predicate that tests against both this predicate AND theotherpredicate.default RouterFunction<T>RouterFunction.andNest(RequestPredicate predicate, RouterFunction<T> routerFunction) Return a composed routing function that routes to the given router function if this route does not match and the given request predicate applies.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.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.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.voidRouterFunctions.Visitor.endNested(RequestPredicate predicate) Receive notification of the end of a nested router function.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.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.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.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.nest(RequestPredicate predicate, Consumer<RouterFunctions.Builder> builderConsumer) Route to a built router function if the given request predicate applies.RouterFunctions.Builder.nest(RequestPredicate predicate, Supplier<RouterFunction<ServerResponse>> routerFunctionSupplier) Route to the supplied router function if the given request predicate applies.static <T extends ServerResponse>
RouterFunction<T>RouterFunctions.nest(RequestPredicate predicate, RouterFunction<T> routerFunction) Route to the given router function if the given request predicate applies.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.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.default RequestPredicateRequestPredicate.or(RequestPredicate other) Return a composed request predicate that tests against both this predicate OR theotherpredicate.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.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.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.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.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.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.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.voidRouterFunctions.Visitor.startNested(RequestPredicate predicate) Receive notification of the beginning of a nested router function.voidRequestPredicates.Visitor.unknown(RequestPredicate predicate) Receive first notification of an unknown predicate.