<T> and writing
the encoded stream of bytes to an ReactiveHttpOutputMessage.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if writable, false otherwisethe type of object to check elementType, MediaType the media type for the write (possibly mediaType)null)Whether the given object type is supported by this writer. |
| public List | Returns: the general list of supported media typesReturn the list of media types supported by this Writer. |
| public default List | Returns: the list of media types supported for the given classthe type of element to encode elementType)Return the list of media types supported by this Writer for the given type of element. |
| public Mono | Returns: indicates completion or errorthe objects to write inputStream, ResolvableType the type of objects in the stream which must have been
previously checked via elementType, MediaType canWrite(ResolvableType, MediaType)the content type for the write (possibly mediaType, ReactiveHttpOutputMessage null to
indicate that the default content type of the writer must be used)the message to write to message, Map<String, Object> additional information about how to encode and write hints)Write a given stream of object to the output message. |
| public default Mono | Returns: aMono that indicates completion of writing or errorthe actual return type of the method that returned the
value; for annotated controllers, the actualType, ResolvableType MethodParameter can be
accessed via ResolvableType#getSource().the type of Objects in the input stream elementType, MediaType the content type to use (possibly mediaType, ServerHttpRequest null indicating
the default content type of the writer should be used)the current request request, ServerHttpResponse the current response response, Map<String, Object> hints)Server-side only alternative to
|
| canWrite | back to summary |
|---|---|
| public boolean canWrite(ResolvableType elementType, MediaType mediaType) Whether the given object type is supported by this writer.
| |
| getWritableMediaTypes | back to summary |
|---|---|
| public List Return the list of media types supported by this Writer. The list may not
apply to every possible target element type and calls to this method should
typically be guarded via | |
| getWritableMediaTypes | back to summary |
|---|---|
| public default List Return the list of media types supported by this Writer for the given type
of element. This list may differ from
| |
| write | back to summary |
|---|---|
| public Mono Write a given stream of object to the output message.
| |
| write | back to summary |
|---|---|
| public default Mono Server-side only alternative to
| |