public interface ServerHttpMessageReader<T> extends HttpMessageReader<T>
HttpMessageReader that allows to resolve hints using annotations or
perform additional operation using ServerHttpRequest or ServerHttpResponse.| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<T> |
read(org.springframework.core.ResolvableType streamType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
Map<String,Object> hints)
Read a
Flux of the given type form the given input message with additional server related
parameters which could be used to create some hints or set the response status for example. |
reactor.core.publisher.Mono<T> |
readMono(org.springframework.core.ResolvableType streamType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
Map<String,Object> hints)
Read a
Mono of the given type form the given input message with additional server related
parameters which could be used to create some hints or set the response status for example. |
canRead, getReadableMediaTypes, read, readMonoreactor.core.publisher.Flux<T> read(org.springframework.core.ResolvableType streamType, org.springframework.core.ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
Flux of the given type form the given input message with additional server related
parameters which could be used to create some hints or set the response status for example.
Return hints that can be used to customize how the body should be readstreamType - the original type used in the method parameter. For annotation
based controllers, the MethodParameter is available via ResolvableType.getSource().elementType - the stream element type to return
Typically the value of a Content-Type header.request - the current HTTP requestresponse - the current HTTP responsehints - additional information about how to read the bodyFlux of elementsreactor.core.publisher.Mono<T> readMono(org.springframework.core.ResolvableType streamType, org.springframework.core.ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, Map<String,Object> hints)
Mono of the given type form the given input message with additional server related
parameters which could be used to create some hints or set the response status for example.
Return hints that can be used to customize how the body should be readstreamType - the original type used in the method parameter. For annotation
based controllers, the MethodParameter is available via ResolvableType.getSource().elementType - the stream element type to return
Typically the value of a Content-Type header.request - the current HTTP requestresponse - the current HTTP responsehints - additional information about how to read the bodyMono of object