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 |
---|---|
<any> |
read(ResolvableType streamType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.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. |
<any> |
readMono(ResolvableType streamType,
ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response,
java.util.Map<java.lang.String,java.lang.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, readMono
<any> read(ResolvableType streamType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, java.util.Map<java.lang.String,java.lang.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 elements<any> readMono(ResolvableType streamType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response, java.util.Map<java.lang.String,java.lang.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