Uses of Interface
org.springframework.http.server.reactive.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.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
Modifier and TypeMethodDescriptionHttpMessageDecoder.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.HttpMessageEncoder.getEncodeHints
(ResolvableType actualType, ResolvableType elementType, 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, 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, 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, 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, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) reactor.core.publisher.Mono<Void>
ServerSentEventHttpMessageWriter.write
(Publisher<?> input, ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> hints) -
Uses of ServerHttpRequest in org.springframework.http.codec.json
Modifier and TypeMethodDescriptionAbstractJackson2Decoder.getDecodeHints
(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response) AbstractJackson2Encoder.getEncodeHints
(ResolvableType actualType, ResolvableType elementType, MediaType mediaType, ServerHttpRequest request, ServerHttpResponse response) -
Uses of ServerHttpRequest in org.springframework.http.server.reactive
Modifier and TypeClassDescriptionclass
Common base class forServerHttpRequest
implementations.class
Wraps anotherServerHttpRequest
and delegates all methods to it.Modifier and TypeMethodDescriptionServerHttpRequest.Builder.build()
Build aServerHttpRequest
decorator with the mutated properties.ServerHttpRequestDecorator.getDelegate()
Modifier and TypeMethodDescriptionstatic <T> T
ServerHttpRequestDecorator.getNativeRequest
(ServerHttpRequest request) Return the native request of the underlying server API, if possible, also unwrappingServerHttpRequestDecorator
if 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. -
Uses of ServerHttpRequest in org.springframework.http.server.reactive.observation
ModifierConstructorDescriptionServerRequestObservationContext
(ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> attributes) -
Uses of ServerHttpRequest in org.springframework.mock.http.server.reactive
Modifier and TypeClassDescriptionfinal class
Mock extension ofAbstractServerHttpRequest
for use in tests without an actual server. -
Uses of ServerHttpRequest in org.springframework.mock.web.reactive.function.server
Modifier and TypeMethodDescription<S> S
MockServerRequest.body
(BodyExtractor<S, ? super ServerHttpRequest> extractor) <S> S
MockServerRequest.body
(BodyExtractor<S, ? super ServerHttpRequest> extractor, Map<String, Object> hints) -
Uses of ServerHttpRequest in org.springframework.web.cors.reactive
Modifier and TypeMethodDescriptionstatic boolean
CorsUtils.isCorsRequest
(ServerHttpRequest request) Returnstrue
if the request is a valid CORS one by checkingOrigin
header presence and ensuring that origins are different viaCorsUtils.isSameOrigin(org.springframework.http.server.reactive.ServerHttpRequest)
.static boolean
CorsUtils.isPreFlightRequest
(ServerHttpRequest request) Returnstrue
if the request is a valid CORS pre-flight one by checking {code OPTIONS} method withOrigin
andAccess-Control-Request-Method
headers presence.static boolean
CorsUtils.isSameOrigin
(ServerHttpRequest request) Deprecated. -
Uses of ServerHttpRequest in org.springframework.web.reactive.function
Modifier 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
Modifier and TypeMethodDescription<T> T
ServerRequest.body
(BodyExtractor<T, ? super ServerHttpRequest> extractor) Extract the body with the givenBodyExtractor
.<T> T
ServerRequest.body
(BodyExtractor<T, ? super ServerHttpRequest> extractor, Map<String, Object> hints) Extract the body with the givenBodyExtractor
and hints. -
Uses of ServerHttpRequest in org.springframework.web.reactive.function.server.support
Modifier and TypeMethodDescription<T> T
ServerRequestWrapper.body
(BodyExtractor<T, ? super ServerHttpRequest> extractor) <T> T
ServerRequestWrapper.body
(BodyExtractor<T, ? super ServerHttpRequest> extractor, Map<String, Object> hints) -
Uses of ServerHttpRequest in org.springframework.web.reactive.result.view
Modifier and TypeMethodDescriptionprotected StringBuilder
RedirectView.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
Modifier and TypeMethodDescriptionServerWebExchange.getRequest()
Return the current HTTP request.ServerWebExchangeDecorator.getRequest()
Modifier and TypeMethodDescriptionServerWebExchange.Builder.request
(ServerHttpRequest request) Set the request to use especially when there is a need to overrideServerHttpRequest
methods. -
Uses of ServerHttpRequest in org.springframework.web.server.adapter
Modifier and TypeMethodDescriptionForwardedHeaderTransformer.apply
(ServerHttpRequest request) Apply and remove, or remove Forwarded type headers.DefaultServerWebExchange.getRequest()
Modifier and TypeMethodDescriptionForwardedHeaderTransformer.apply
(ServerHttpRequest request) Apply and remove, or remove Forwarded type headers.protected ServerWebExchange
HttpWebHandlerAdapter.createExchange
(ServerHttpRequest request, ServerHttpResponse response) protected String
HttpWebHandlerAdapter.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 boolean
ForwardedHeaderTransformer.hasForwardedHeaders
(ServerHttpRequest request) Whether the request has any Forwarded headers.ModifierConstructorDescriptionDefaultServerWebExchange
(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver)
CorsUtils.isCorsRequest(org.springframework.http.server.reactive.ServerHttpRequest)