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 for Reactive environments.
|
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 |
---|---|
Map<String,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 Map<String,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 Map<String,Object> |
ResourceHttpMessageReader.getReadHints(ResolvableType actualType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response) |
protected Map<String,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 Map<String,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.
|
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 to
HttpMessageReader.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 to
HttpMessageReader.readMono(ResolvableType, ReactiveHttpInputMessage, Map)
with additional, context available. |
reactor.core.publisher.Mono<Void> |
ServerSentEventHttpMessageWriter.write(org.reactivestreams.Publisher<?> input,
ResolvableType actualType,
ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
ResourceHttpMessageWriter.write(org.reactivestreams.Publisher<? extends Resource> inputStream,
ResolvableType actualType,
ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Void> |
EncoderHttpMessageWriter.write(org.reactivestreams.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(org.reactivestreams.Publisher<? extends T> inputStream,
ResolvableType actualType,
ResolvableType elementType,
MediaType mediaType,
ServerHttpRequest request,
ServerHttpResponse response,
Map<String,Object> hints)
Server-side only alternative to
HttpMessageWriter.write(Publisher, ResolvableType, MediaType, ReactiveHttpOutputMessage, Map)
with additional context available. |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
AbstractJackson2Decoder.getDecodeHints(ResolvableType actualType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response) |
Map<String,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 |
---|---|
static <T> T |
ServerHttpResponseDecorator.getNativeResponse(ServerHttpResponse response)
Return the native response of the underlying server API, if possible,
also unwrapping
ServerHttpResponseDecorator 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.
|
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. |
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<Void> |
HttpWebHandlerAdapter.handle(ServerHttpRequest request,
ServerHttpResponse response) |
Constructor and Description |
---|
DefaultServerWebExchange(ServerHttpRequest request,
ServerHttpResponse response,
WebSessionManager sessionManager,
ServerCodecConfigurer codecConfigurer,
LocaleContextResolver localeContextResolver) |