Uses of Interface
org.springframework.web.reactive.function.server.ServerResponse
Packages that use ServerResponse
Package
Description
Provides the types that make up Spring's functional web framework for Reactive environments.
-
Uses of ServerResponse in org.springframework.web.reactive.function.server
Classes in org.springframework.web.reactive.function.server with type parameters of type ServerResponseModifier and TypeInterfaceDescriptioninterfaceHandlerFilterFunction<T extends ServerResponse, R extends ServerResponse>Represents a function that filters a handler function.interfaceHandlerFilterFunction<T extends ServerResponse, R extends ServerResponse>Represents a function that filters a handler function.interfaceHandlerFunction<T extends ServerResponse>Represents a function that handles a request.interfaceRouterFunction<T extends ServerResponse>Represents a function that routes to a handler function.Subinterfaces of ServerResponse in org.springframework.web.reactive.function.serverModifier and TypeInterfaceDescriptioninterfaceEntity-specific subtype ofServerResponsethat exposes entity data.interfaceRendering-specific subtype ofServerResponsethat exposes model and template data.Methods in org.springframework.web.reactive.function.server with type parameters of type ServerResponseModifier and TypeMethodDescription<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.add(RouterFunction<T> routerFunction) Adds the given route to this builder.<T extends ServerResponse, R extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.after(BiFunction<ServerRequest, T, R> responseProcessor) Filter the response object for all routes created by this builder with the given response processing function.<T extends ServerResponse, R extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.after(BiFunction<ServerRequest, T, R> responseProcessor) Filter the response object for all routes created by this builder with the given response processing function.static <T extends ServerResponse>
RouterFunction<T> RouterFunctions.changeParser(RouterFunction<T> routerFunction, PathPatternParser parser) Changes thePathPatternParseron the given router function.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.DELETE(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPDELETErequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.DELETE(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPDELETErequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.DELETE(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPDELETErequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.DELETE(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPDELETErequests that match the given predicate.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.<T extends ServerResponse, R extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.filter(HandlerFilterFunction<T, R> filterFunction) Filters all routes created by this builder with the given filter function.<T extends ServerResponse, R extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.filter(HandlerFilterFunction<T, R> filterFunction) Filters all routes created by this builder with the given filter function.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.GET(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPGETrequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.GET(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPGETrequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.GET(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPGETrequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.GET(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPGETrequests that match the given predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.HEAD(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPHEADrequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.HEAD(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPHEADrequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.HEAD(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPHEADrequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.HEAD(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPHEADrequests that match the given predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.nest(RequestPredicate predicate, Supplier<RouterFunction<T>> 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.static <T extends ServerResponse, R extends ServerResponse>
HandlerFilterFunction<T, R> HandlerFilterFunction.ofResponseProcessor(Function<T, Mono<R>> responseProcessor) Adapt the given response processor function to a filter function that only operates on theServerResponse.static <T extends ServerResponse, R extends ServerResponse>
HandlerFilterFunction<T, R> HandlerFilterFunction.ofResponseProcessor(Function<T, Mono<R>> responseProcessor) Adapt the given response processor function to a filter function that only operates on theServerResponse.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.onError(Predicate<? super Throwable> predicate, BiFunction<? super Throwable, ServerRequest, Mono<T>> responseProvider) Filters all exceptions that match the predicate by applying the given response provider function.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.OPTIONS(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPOPTIONSrequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.OPTIONS(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPOPTIONSrequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.OPTIONS(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPOPTIONSrequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.OPTIONS(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPOPTIONSrequests that match the given predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PATCH(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPATCHrequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PATCH(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPATCHrequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PATCH(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPPATCHrequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PATCH(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPATCHrequests that match the given predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.path(String pattern, Supplier<RouterFunction<T>> routerFunctionSupplier) Route to the supplied router function if the given path prefix pattern applies.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.POST(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPOSTrequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.POST(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPOSTrequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.POST(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPPOSTrequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.POST(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPOSTrequests that match the given predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PUT(String pattern, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPUTrequests that match the given pattern.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PUT(String pattern, RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPUTrequests that match the given pattern and predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PUT(HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles HTTPPUTrequests.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.PUT(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Adds a route to the given handler function that handles all HTTPPUTrequests that match the given predicate.<T extends ServerResponse>
RouterFunctions.BuilderRouterFunctions.Builder.route(RequestPredicate predicate, HandlerFunction<T> 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.Methods in org.springframework.web.reactive.function.server that return types with arguments of type ServerResponseModifier and TypeMethodDescriptionVariant ofServerResponse.BodyBuilder.body(Publisher, Class)that allows using any producer that can be resolved toPublisherviaReactiveAdapterRegistry.ServerResponse.BodyBuilder.body(Object producer, ParameterizedTypeReference<?> elementTypeRef) Variant ofServerResponse.BodyBuilder.body(Publisher, ParameterizedTypeReference)that allows using any producer that can be resolved toPublisherviaReactiveAdapterRegistry.ServerResponse.BodyBuilder.body(BodyInserter<?, ? super ServerHttpResponse> inserter) Set the body of the response to the givenBodyInserterand return it.<T, P extends Publisher<T>>
Mono<ServerResponse> Set the body from the givenPublisher.<T, P extends Publisher<T>>
Mono<ServerResponse> ServerResponse.BodyBuilder.body(P publisher, ParameterizedTypeReference<T> elementTypeRef) Variant ofServerResponse.BodyBuilder.body(Publisher, Class)that allows using any producer that can be resolved toPublisherviaReactiveAdapterRegistry.Set the body of the response to the givenObjectand return it.<T> Mono<ServerResponse> ServerResponse.BodyBuilder.bodyValue(T body, ParameterizedTypeReference<T> bodyType) Set the body of the response to the givenObjectand return it.RouterFunctions.Builder.build()Builds theRouterFunction.ServerResponse.HeadersBuilder.build()Build the response entity with no body.ServerResponse.HeadersBuilder.build(BiFunction<ServerWebExchange, ServerResponse.Context, Mono<Void>> writeFunction) Build the response entity with a custom writer function.Build the response entity with no body.default Mono<ServerResponse> ServerRequest.checkNotModified(String etag) Check whether the requested resource has been modified given the suppliedETag(entity tag), as determined by the application.default Mono<ServerResponse> ServerRequest.checkNotModified(Instant lastModified) Check whether the requested resource has been modified given the supplied last-modified timestamp (as determined by the application).default Mono<ServerResponse> ServerRequest.checkNotModified(Instant lastModified, String etag) Check whether the requested resource has been modified given the suppliedETag(entity tag) and last-modified timestamp, as determined by the application.static Mono<ServerResponse> ServerResponse.from(ErrorResponse response) Create aServerResponsefrom the givenErrorResponse.Render the template with the givennameusing the givenmodelAttributes.Render the template with the givennameusing the givenmodel.static RouterFunction<ServerResponse> RouterFunctions.resource(RequestPredicate predicate, Resource resource) Route requests that match the given predicate to the given resource.static RouterFunction<ServerResponse> RouterFunctions.resource(RequestPredicate predicate, Resource resource, BiConsumer<Resource, HttpHeaders> headersConsumer) Route requests that match the given predicate to the given resource.static RouterFunction<ServerResponse> Route requests that match the given pattern to resources relative to the given root location.static RouterFunction<ServerResponse> RouterFunctions.resources(String pattern, Resource location, BiConsumer<Resource, HttpHeaders> headersConsumer) Route requests that match the given pattern to resources relative to the given root location.static RouterFunction<ServerResponse> RouterFunctions.resources(Function<ServerRequest, Mono<Resource>> lookupFunction) Route to resources using the provided lookup function.static RouterFunction<ServerResponse> RouterFunctions.resources(Function<ServerRequest, Mono<Resource>> lookupFunction, BiConsumer<Resource, HttpHeaders> headersConsumer) Route to resources using the provided lookup function.Methods in org.springframework.web.reactive.function.server with parameters of type ServerResponseModifier and TypeMethodDescriptionstatic ServerResponse.BodyBuilderServerResponse.from(ServerResponse other) Create a builder with the status code and headers of the given response.Method parameters in org.springframework.web.reactive.function.server with type arguments of type ServerResponseModifier and TypeMethodDescription<T extends Throwable>
RouterFunctions.BuilderRouterFunctions.Builder.onError(Class<T> exceptionType, BiFunction<? super T, ServerRequest, Mono<ServerResponse>> responseProvider) Filters all exceptions of the given type by applying the given response provider function.