Uses of Interface
org.springframework.web.reactive.function.server.ServerRequest
Packages that use ServerRequest
Package
Description
Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server package.-
Uses of ServerRequest in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return ServerRequestModifier and TypeMethodDescriptionServerRequest.Builder.build()Build the request.static ServerRequestServerRequest.create(org.springframework.web.server.ServerWebExchange exchange, List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders) Create a newServerRequestbased on the givenServerWebExchangeand message readers.Methods in org.springframework.web.reactive.function.server that return types with arguments of type ServerRequestModifier and TypeMethodDescriptiondefault Optional<ServerRequest>RequestPredicate.nest(ServerRequest request) Transform the given request into a request used for a nested route.static Function<ServerRequest,reactor.core.publisher.Mono<org.springframework.core.io.Resource>> RouterFunctions.resourceLookupFunction(String pattern, org.springframework.core.io.Resource location) Returns the resource lookup function used byRouterFunctions.resources(String, Resource).Methods in org.springframework.web.reactive.function.server with parameters of type ServerRequestModifier and TypeMethodDescriptionreactor.core.publisher.Mono<R>HandlerFilterFunction.filter(ServerRequest request, HandlerFunction<T> next) Apply this filter to the given handler function.static ServerRequest.BuilderServerRequest.from(ServerRequest other) Create a builder with the message readers, method name, URI, headers, cookies, and attributes of the given request.reactor.core.publisher.Mono<T>HandlerFunction.handle(ServerRequest request) Handle the given request.default Optional<ServerRequest>RequestPredicate.nest(ServerRequest request) Transform the given request into a request used for a nested route.reactor.core.publisher.Mono<HandlerFunction<T>>RouterFunction.route(ServerRequest request) Return the handler function that matches the given request.booleanRequestPredicate.test(ServerRequest request) Evaluate this predicate on the given request.Method parameters in org.springframework.web.reactive.function.server with type arguments of type ServerRequestModifier and TypeMethodDescriptionRouterFunctions.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.before(Function<ServerRequest, ServerRequest> requestProcessor) Filter the request object for all routes created by this builder with the given request processing function.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 HandlerFilterFunction<?,?> HandlerFilterFunction.ofRequestProcessor(Function<ServerRequest, reactor.core.publisher.Mono<ServerRequest>> requestProcessor) Adapt the given request processor function to a filter function that only operates on theServerRequest.static HandlerFilterFunction<?,?> HandlerFilterFunction.ofRequestProcessor(Function<ServerRequest, reactor.core.publisher.Mono<ServerRequest>> requestProcessor) Adapt the given request processor function to a filter function that only operates on theServerRequest.<T extends Throwable>
RouterFunctions.BuilderRouterFunctions.Builder.onError(Class<T> exceptionType, BiFunction<? super T, ServerRequest, reactor.core.publisher.Mono<ServerResponse>> responseProvider) Filters all exceptions of the given type by applying the given response provider function.RouterFunctions.Builder.onError(Predicate<? super Throwable> predicate, BiFunction<? super Throwable, ServerRequest, reactor.core.publisher.Mono<ServerResponse>> responseProvider) Filters all exceptions that match the predicate by applying the given response provider function.RouterFunctions.Builder.resources(Function<ServerRequest, reactor.core.publisher.Mono<org.springframework.core.io.Resource>> lookupFunction) Route to resources using the provided lookup function.RouterFunctions.Builder.resources(Function<ServerRequest, reactor.core.publisher.Mono<org.springframework.core.io.Resource>> lookupFunction, BiConsumer<org.springframework.core.io.Resource, org.springframework.http.HttpHeaders> headersConsumer) Route to resources using the provided lookup function.static RouterFunction<ServerResponse>RouterFunctions.resources(Function<ServerRequest, reactor.core.publisher.Mono<org.springframework.core.io.Resource>> lookupFunction) Route to resources using the provided lookup function.static RouterFunction<ServerResponse>RouterFunctions.resources(Function<ServerRequest, reactor.core.publisher.Mono<org.springframework.core.io.Resource>> lookupFunction, BiConsumer<org.springframework.core.io.Resource, org.springframework.http.HttpHeaders> headersConsumer) Route to resources using the provided lookup function.voidRouterFunctions.Visitor.resources(Function<ServerRequest, reactor.core.publisher.Mono<org.springframework.core.io.Resource>> lookupFunction) Receive notification of a resource router function. -
Uses of ServerRequest in org.springframework.web.reactive.function.server.support
Classes in org.springframework.web.reactive.function.server.support that implement ServerRequestModifier and TypeClassDescriptionclassImplementation of theServerRequestinterface that can be subclassed to adapt the request in ahandler filter function.Methods in org.springframework.web.reactive.function.server.support that return ServerRequestConstructors in org.springframework.web.reactive.function.server.support with parameters of type ServerRequestModifierConstructorDescriptionServerRequestWrapper(ServerRequest delegate) Create a newServerRequestWrapperthat wraps the given request.