ReactiveHttpInputMessage and decoding
the stream of bytes to Objects of type <T>.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if readable, false otherwisethe type of object to check elementType, MediaType the media type for the read (possibly mediaType)null)Whether the given object type is supported by this reader. |
| public List | Returns: the general list of supported media typesReturn the list of media types supported by this reader. |
| public default List | Returns: the list of media types supported for the given classthe type of element to read elementType)Return the list of media types supported by this Reader for the given type of element. |
| public Flux | Returns: the decoded stream of elementsthe type of objects in the stream which must have been
previously checked via elementType, ReactiveHttpInputMessage canRead(ResolvableType, MediaType)the message to read from message, Map<String, Object> additional information about how to read and decode the input hints)Read from the input message and decode to a stream of objects. |
| public default Flux | Returns: the decoded stream of elementsthe actual type of the target method parameter;
for annotated controllers, the actualType, ResolvableType MethodParameter can be accessed
via ResolvableType#getSource().the type of Objects in the output stream elementType, ServerHttpRequest the current request request, ServerHttpResponse the current response response, Map<String, Object> additional information about how to read the body hints)Server-side only alternative to
|
| public Mono | Returns: the decoded objectthe type of objects in the stream which must have been
previously checked via elementType, ReactiveHttpInputMessage canRead(ResolvableType, MediaType)the message to read from message, Map<String, Object> additional information about how to read and decode the input hints)Read from the input message and decode to a single object. |
| public default Mono | Returns: the decoded stream of elementsthe actual type of the target method parameter;
for annotated controllers, the actualType, ResolvableType MethodParameter can be accessed
via ResolvableType#getSource().the type of Objects in the output stream elementType, ServerHttpRequest the current request request, ServerHttpResponse the current response response, Map<String, Object> additional information about how to read the body hints)Server-side only alternative to
|
| canRead | back to summary |
|---|---|
| public boolean canRead(ResolvableType elementType, MediaType mediaType) Whether the given object type is supported by this reader.
| |
| getReadableMediaTypes | back to summary |
|---|---|
| public List Return the list of media types supported by this reader. The list may not
apply to every possible target element type and calls to this method
should typically be guarded via | |
| getReadableMediaTypes | back to summary |
|---|---|
| public default List Return the list of media types supported by this Reader for the given type
of element. This list may differ from
| |
| read | back to summary |
|---|---|
| public Flux Read from the input message and decode to a stream of objects.
| |
| read | back to summary |
|---|---|
| public default Flux Server-side only alternative to
| |
| readMono | back to summary |
|---|---|
| public Mono Read from the input message and decode to a single object.
| |
| readMono | back to summary |
|---|---|
| public default Mono Server-side only alternative to
| |