Uses of Interface
org.springframework.http.server.reactive.ServerHttpRequest
Packages that use ServerHttpRequest
Package
Description
JSON encoder and decoder support.
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing.Instrumentation for
observing reactive HTTP server applications.Mock implementations of reactive HTTP server contracts.
Mock objects for the functional web framework.
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy.WebFilter implementations for use in
reactive web applications.Provides a foundation for both the reactive client and server subpackages.
Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server package.Support for result handling through view resolution.
Core interfaces and classes for Spring's generic, reactive web support.
Implementations to adapt to the underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler.-
Uses of ServerHttpRequest in org.springframework.http.codec
Methods in org.springframework.http.codec with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionAbstractJacksonDecoder.getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) HttpMessageDecoder.getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) Get decoding hints based on the server request or annotations on the target controller method parameter.AbstractJacksonEncoder.getEncodeHints(@Nullable ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) HttpMessageEncoder.getEncodeHints(ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) Get decoding hints based on the server request or annotations on the target controller method parameter.DecoderHttpMessageReader.getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) Get additional hints for decoding for example based on the server request or annotations from controller method parameters.ResourceHttpMessageReader.getReadHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) EncoderHttpMessageWriter.getWriteHints(ResolvableType streamType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) Get additional hints for encoding for example based on the server request or annotations from controller method parameters.reactor.core.publisher.Flux<T> DecoderHttpMessageReader.read(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) default reactor.core.publisher.Flux<T> HttpMessageReader.read(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) Server-side only alternative toHttpMessageReader.read(ResolvableType, ReactiveHttpInputMessage, Map)with additional context available.reactor.core.publisher.Mono<T> DecoderHttpMessageReader.readMono(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) default reactor.core.publisher.Mono<T> HttpMessageReader.readMono(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) Server-side only alternative toHttpMessageReader.readMono(ResolvableType, ReactiveHttpInputMessage, Map)with additional, context available.reactor.core.publisher.Mono<Void> EncoderHttpMessageWriter.write(Publisher<? extends T> inputStream, ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) default reactor.core.publisher.Mono<Void> HttpMessageWriter.write(Publisher<? extends T> inputStream, ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) Server-side only alternative toHttpMessageWriter.write(Publisher, ResolvableType, MediaType, ReactiveHttpOutputMessage, Map)with additional context available.reactor.core.publisher.Mono<Void> ResourceHttpMessageWriter.write(Publisher<? extends Resource> inputStream, @Nullable ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) reactor.core.publisher.Mono<Void> ServerSentEventHttpMessageWriter.write(Publisher<?> input, ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) -
Uses of ServerHttpRequest in org.springframework.http.codec.json
Methods in org.springframework.http.codec.json with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionAbstractJackson2Decoder.getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.AbstractJackson2Encoder.getEncodeHints(@Nullable ResolvableType actualType, ResolvableType elementType, @Nullable MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ServerHttpRequest in org.springframework.http.server.reactive
Classes in org.springframework.http.server.reactive that implement ServerHttpRequestModifier and TypeClassDescriptionclassCommon base class forServerHttpRequestimplementations.classWraps anotherServerHttpRequestand delegates all methods to it.Methods in org.springframework.http.server.reactive that return ServerHttpRequestModifier and TypeMethodDescriptionServerHttpRequest.Builder.build()Build aServerHttpRequestdecorator with the mutated properties.ServerHttpRequestDecorator.getDelegate()Methods in org.springframework.http.server.reactive with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionstatic <T> TServerHttpRequestDecorator.getNativeRequest(ServerHttpRequest request) Return the native request of the underlying server API, if possible, also unwrappingServerHttpRequestDecoratorif necessary.reactor.core.publisher.Mono<Void> ContextPathCompositeHandler.handle(ServerHttpRequest request, ServerHttpResponse response) reactor.core.publisher.Mono<Void> HttpHandler.handle(ServerHttpRequest request, ServerHttpResponse response) Handle the given request and write to the response.Constructors in org.springframework.http.server.reactive with parameters of type ServerHttpRequest -
Uses of ServerHttpRequest in org.springframework.http.server.reactive.observation
Subclasses with type arguments of type ServerHttpRequest in org.springframework.http.server.reactive.observationModifier and TypeClassDescriptionclassContext that holds information for metadata collection regardingreactive HTTP requestsobservations.Constructors in org.springframework.http.server.reactive.observation with parameters of type ServerHttpRequestModifierConstructorDescriptionServerRequestObservationContext(ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> attributes) Create a newServerRequestObservationContextinstance. -
Uses of ServerHttpRequest in org.springframework.mock.http.server.reactive
Classes in org.springframework.mock.http.server.reactive that implement ServerHttpRequestModifier and TypeClassDescriptionfinal classMock extension ofAbstractServerHttpRequestfor use in tests without an actual server. -
Uses of ServerHttpRequest in org.springframework.mock.web.reactive.function.server
Method parameters in org.springframework.mock.web.reactive.function.server with type arguments of type ServerHttpRequestModifier and TypeMethodDescription<S> SMockServerRequest.body(BodyExtractor<S, ? super ServerHttpRequest> extractor) <S> SMockServerRequest.body(BodyExtractor<S, ? super ServerHttpRequest> extractor, Map<String, Object> hints) -
Uses of ServerHttpRequest in org.springframework.web.cors.reactive
Methods in org.springframework.web.cors.reactive with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionstatic booleanCorsUtils.isCorsRequest(ServerHttpRequest request) Returnstrueif the request is a valid CORS one by checkingOriginheader presence and ensuring that origins are different viaCorsUtils.isSameOrigin(ServerHttpRequest).static booleanCorsUtils.isPreFlightRequest(ServerHttpRequest request) Returnstrueif the request is a valid CORS pre-flight one by checkingOPTIONSmethod withOriginandAccess-Control-Request-Methodheaders presence. -
Uses of ServerHttpRequest in org.springframework.web.filter.reactive
Method parameters in org.springframework.web.filter.reactive with type arguments of type ServerHttpRequestModifier and TypeMethodDescriptionUrlHandlerFilter.Builder.TrailingSlashSpec.intercept(Function<ServerHttpRequest, reactor.core.publisher.Mono<Void>> interceptor) Configure a request interceptor to be called just before the handler is invoked when a URL with a trailing slash is matched. -
Uses of ServerHttpRequest in org.springframework.web.reactive.function
Methods in org.springframework.web.reactive.function that return types with arguments of type ServerHttpRequestModifier and TypeMethodDescriptionBodyInserter.Context.serverRequest()Optionally return theServerHttpRequest, if present.static BodyExtractor<reactor.core.publisher.Mono<MultiValueMap<String, Part>>, ServerHttpRequest> BodyExtractors.toMultipartData()Extractor to read multipart data into aMultiValueMap<String, Part>.static BodyExtractor<reactor.core.publisher.Flux<Part>, ServerHttpRequest> BodyExtractors.toParts()Extractor to read multipart data intoFlux<Part>. -
Uses of ServerHttpRequest in org.springframework.web.reactive.function.server
Method parameters in org.springframework.web.reactive.function.server with type arguments of type ServerHttpRequestModifier and TypeMethodDescription<T> TServerRequest.body(BodyExtractor<T, ? super ServerHttpRequest> extractor) Extract the body with the givenBodyExtractor.<T> TServerRequest.body(BodyExtractor<T, ? super ServerHttpRequest> extractor, Map<String, Object> hints) Extract the body with the givenBodyExtractorand hints. -
Uses of ServerHttpRequest in org.springframework.web.reactive.function.server.support
Method parameters in org.springframework.web.reactive.function.server.support with type arguments of type ServerHttpRequestModifier and TypeMethodDescription<T> TServerRequestWrapper.body(BodyExtractor<T, ? super ServerHttpRequest> extractor) <T> TServerRequestWrapper.body(BodyExtractor<T, ? super ServerHttpRequest> extractor, Map<String, Object> hints) -
Uses of ServerHttpRequest in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionprotected StringBuilderRedirectView.appendCurrentRequestQuery(String targetUrl, ServerHttpRequest request) Append the query of the current request to the target redirect URL. -
Uses of ServerHttpRequest in org.springframework.web.server
Methods in org.springframework.web.server that return ServerHttpRequestModifier and TypeMethodDescriptionServerWebExchange.getRequest()Return the current HTTP request.ServerWebExchangeDecorator.getRequest()Methods in org.springframework.web.server with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionServerWebExchange.Builder.request(ServerHttpRequest request) Set the request to use especially when there is a need to overrideServerHttpRequestmethods. -
Uses of ServerHttpRequest in org.springframework.web.server.adapter
Classes in org.springframework.web.server.adapter that implement interfaces with type arguments of type ServerHttpRequestModifier and TypeClassDescriptionclassExtract values from "Forwarded" and "X-Forwarded-*" headers to override the request URI (i.e.classExtract values from "Forwarded" and "X-Forwarded-*" headers to override the request URI (i.e.Methods in org.springframework.web.server.adapter that return ServerHttpRequestModifier and TypeMethodDescriptionForwardedHeaderTransformer.apply(ServerHttpRequest request) Apply and remove, or remove Forwarded type headers.DefaultServerWebExchange.getRequest()Methods in org.springframework.web.server.adapter with parameters of type ServerHttpRequestModifier and TypeMethodDescriptionForwardedHeaderTransformer.apply(ServerHttpRequest request) Apply and remove, or remove Forwarded type headers.protected ServerWebExchangeHttpWebHandlerAdapter.createExchange(ServerHttpRequest request, ServerHttpResponse response) protected StringHttpWebHandlerAdapter.formatRequest(ServerHttpRequest request) Format the request for logging purposes including HTTP method and URL.reactor.core.publisher.Mono<Void> HttpWebHandlerAdapter.handle(ServerHttpRequest request, ServerHttpResponse response) protected booleanForwardedHeaderTransformer.hasForwardedHeaders(ServerHttpRequest request) Whether the request has any Forwarded headers.Constructors in org.springframework.web.server.adapter with parameters of type ServerHttpRequestModifierConstructorDescriptionDefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver) protectedDefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver, @Nullable ApplicationContext applicationContext)