HttpMessageWriter for writing with Part. This can be useful
on the server side to write a Flux<Part> received from a client to
some remote service.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canWrite(ResolvableType
the type of object to check elementType, MediaType the media type for the write (possibly mediaType)null)Implements org. Whether the given object type is supported by this writer. |
| private <T> Flux | |
| public Mono | write(Publisher<? extends Part>
the objects to write parts, 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 outputMessage, Map<String, Object> additional information about how to encode and write hints)Implements org. Write a given stream of object to the output message. |
| PartHttpMessageWriter | back to summary |
|---|---|
| public PartHttpMessageWriter() | |
| canWrite | back to summary |
|---|---|
| public boolean canWrite(ResolvableType elementType, MediaType mediaType) Implements org. Doc from org. Whether the given object type is supported by this writer.
| |
| encodePart | back to summary |
|---|---|
| private <T> Flux | |
| write | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Write a given stream of object to the output message.
| |