Package | Description |
---|---|
org.springframework.http.codec |
Provides implementations of
Encoder
and Decoder for web use. |
org.springframework.http.codec.json |
JSON encoder and decoder support.
|
org.springframework.http.server.reactive |
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing. |
org.springframework.web.cors.reactive |
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.server |
Core interfaces and classes for Spring's generic, reactive web support.
|
org.springframework.web.server.adapter |
Implementations to adapt to the underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler . |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
HttpMessageDecoder.getDecodeHints(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the
target controller method parameter.
|
default java.util.Map<java.lang.String,java.lang.Object> |
HttpMessageEncoder.getEncodeHints(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the
target controller method parameter.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
DecoderHttpMessageReader.getReadHints(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response)
Get additional hints for decoding for example based on the server request
or annotations from controller method parameters.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
EncoderHttpMessageWriter.getWriteHints(org.springframework.core.ResolvableType streamType,
org.springframework.core.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.
|
default reactor.core.publisher.Flux<T> |
HttpMessageReader.read(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints)
Server-side only alternative to
HttpMessageReader.read(ResolvableType, ReactiveHttpInputMessage, Map)
with additional context available. |
reactor.core.publisher.Flux<T> |
DecoderHttpMessageReader.read(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints) |
default reactor.core.publisher.Mono<T> |
HttpMessageReader.readMono(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints)
Server-side only alternative to
HttpMessageReader.readMono(ResolvableType, ReactiveHttpInputMessage, Map)
with additional, context available. |
reactor.core.publisher.Mono<T> |
DecoderHttpMessageReader.readMono(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints) |
reactor.core.publisher.Mono<java.lang.Void> |
ServerSentEventHttpMessageWriter.write(org.reactivestreams.Publisher<?> input,
org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints) |
reactor.core.publisher.Mono<java.lang.Void> |
ResourceHttpMessageWriter.write(org.reactivestreams.Publisher<? extends org.springframework.core.io.Resource> inputStream,
org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints) |
default reactor.core.publisher.Mono<java.lang.Void> |
HttpMessageWriter.write(org.reactivestreams.Publisher<? extends T> inputStream,
org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints)
Server-side only alternative to
HttpMessageWriter.write(Publisher, ResolvableType, MediaType, ReactiveHttpOutputMessage, Map)
with additional context available. |
reactor.core.publisher.Mono<java.lang.Void> |
EncoderHttpMessageWriter.write(org.reactivestreams.Publisher<? extends T> inputStream,
org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
AbstractJackson2Decoder.getDecodeHints(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response) |
java.util.Map<java.lang.String,java.lang.Object> |
AbstractJackson2Encoder.getEncodeHints(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractServerHttpRequest
Common base class for
ServerHttpRequest implementations. |
class |
ServerHttpRequestDecorator
Wraps another
ServerHttpRequest and delegates all methods to it. |
Modifier and Type | Method and Description |
---|---|
ServerHttpRequest |
ServerHttpRequest.Builder.build()
Build a
ServerHttpRequest decorator with the mutated properties. |
protected ServerHttpRequest |
ServletHttpHandlerAdapter.createRequest(HttpServletRequest request,
AsyncContext context) |
protected ServerHttpRequest |
TomcatHttpHandlerAdapter.createRequest(HttpServletRequest request,
AsyncContext cxt) |
ServerHttpRequest |
ServerHttpRequestDecorator.getDelegate() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
ContextPathCompositeHandler.handle(ServerHttpRequest request,
ServerHttpResponse response) |
reactor.core.publisher.Mono<java.lang.Void> |
HttpHandler.handle(ServerHttpRequest request,
ServerHttpResponse response)
Handle the given request and write to the response.
|
Constructor and Description |
---|
ServerHttpRequestDecorator(ServerHttpRequest delegate) |
Modifier and Type | Method and Description |
---|---|
static boolean |
CorsUtils.isCorsRequest(ServerHttpRequest request)
Returns
true if the request is a valid CORS one. |
static boolean |
CorsUtils.isPreFlightRequest(ServerHttpRequest request)
Returns
true if the request is a valid CORS pre-flight one. |
static boolean |
CorsUtils.isSameOrigin(ServerHttpRequest request)
Check if the request is a same-origin one, based on
Origin , Host ,
Forwarded and X-Forwarded-Host headers. |
Modifier and Type | Method and Description |
---|---|
ServerHttpRequest |
ServerWebExchangeDecorator.getRequest() |
ServerHttpRequest |
ServerWebExchange.getRequest()
Return the current HTTP request.
|
Modifier and Type | Method and Description |
---|---|
ServerWebExchange.Builder |
ServerWebExchange.Builder.request(ServerHttpRequest request)
Set the request to use especially when there is a need to override
ServerHttpRequest methods. |
Modifier and Type | Method and Description |
---|---|
ServerHttpRequest |
DefaultServerWebExchange.getRequest() |
Modifier and Type | Method and Description |
---|---|
protected ServerWebExchange |
HttpWebHandlerAdapter.createExchange(ServerHttpRequest request,
ServerHttpResponse response) |
reactor.core.publisher.Mono<java.lang.Void> |
HttpWebHandlerAdapter.handle(ServerHttpRequest request,
ServerHttpResponse response) |
Constructor and Description |
---|
DefaultServerWebExchange(ServerHttpRequest request,
ServerHttpResponse response,
WebSessionManager sessionManager,
ServerCodecConfigurer codecConfigurer,
LocaleContextResolver localeContextResolver) |