Package | Description |
---|---|
org.springframework.http.codec | |
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.mock.http.server.reactive |
Mock implementations of reactive HTTP server contracts.
|
org.springframework.web.cors.reactive |
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.reactive.function |
Provides a foundation for both the reactive client and server subpackages.
|
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
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(ResolvableType actualType,
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(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.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
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.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
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.
|
default reactor.core.publisher.Flux<T> |
HttpMessageReader.read(ResolvableType actualType,
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(ResolvableType actualType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.Object> hints) |
default reactor.core.publisher.Mono<T> |
HttpMessageReader.readMono(ResolvableType actualType,
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(ResolvableType actualType,
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,
ResolvableType actualType,
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 Resource> inputStream,
ResolvableType actualType,
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,
ResolvableType actualType,
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,
ResolvableType actualType,
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(ResolvableType actualType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response) |
java.util.Map<java.lang.String,java.lang.Object> |
AbstractJackson2Encoder.getEncodeHints(ResolvableType actualType,
ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractListenerServerHttpResponse
Abstract base class for listener-based server responses, e.g.
|
class |
AbstractServerHttpResponse
Base class for
ServerHttpResponse implementations. |
class |
HttpHeadResponseDecorator
ServerHttpResponse decorator for HTTP HEAD requests. |
class |
ServerHttpResponseDecorator
Wraps another
ServerHttpResponse and delegates all methods to it. |
Modifier and Type | Method and Description |
---|---|
ServerHttpResponse |
ServerHttpResponseDecorator.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 |
---|
HttpHeadResponseDecorator(ServerHttpResponse delegate) |
ServerHttpResponseDecorator(ServerHttpResponse delegate) |
Modifier and Type | Class and Description |
---|---|
class |
MockServerHttpResponse
Mock extension of
AbstractServerHttpResponse for use in tests without
an actual server. |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultCorsProcessor.rejectRequest(ServerHttpResponse response)
Invoked when one of the CORS checks failed.
|
Modifier and Type | Method and Description |
---|---|
static <T,S extends org.reactivestreams.Publisher<ServerSentEvent<T>>> |
BodyInserters.fromServerSentEvents(S eventsPublisher)
Inserter to write the given
ServerSentEvent publisher. |
java.util.Optional<ServerHttpResponse> |
BodyExtractor.Context.serverResponse()
Optionally return the
ServerHttpResponse , if present. |
Modifier and Type | Method and Description |
---|---|
BodyInserter<T,? super ServerHttpResponse> |
EntityResponse.inserter()
Return the
BodyInserter that writes the entity to the output stream. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ServerResponse> |
ServerResponse.BodyBuilder.body(BodyInserter<?,? super ServerHttpResponse> inserter)
Set the body of the response to the given
BodyInserter and return it. |
Modifier and Type | Method and Description |
---|---|
ServerHttpResponse |
ServerWebExchangeDecorator.getResponse() |
ServerHttpResponse |
ServerWebExchange.getResponse()
Return the current HTTP response.
|
Modifier and Type | Method and Description |
---|---|
ServerWebExchange.Builder |
ServerWebExchange.Builder.response(ServerHttpResponse response)
Set the response to use.
|
Modifier and Type | Method and Description |
---|---|
ServerHttpResponse |
DefaultServerWebExchange.getResponse() |
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) |