public class PartHttpMessageWriter extends MultipartWriterSupport implements HttpMessageWriter<Part>
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.DEFAULT_CHARSETlogger| Constructor and Description |
|---|
PartHttpMessageWriter() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
write(Publisher<? extends Part> parts,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage outputMessage,
Map<String,Object> hints)
Write a given stream of object to the output message.
|
canWrite, generateBoundaryLine, generateLastLine, generateMultipartBoundary, generateNewLine, generatePartHeaders, getCharset, getMultipartMediaType, getWritableMediaTypes, setCharsetisEnableLoggingRequestDetails, setEnableLoggingRequestDetailsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanWrite, getWritableMediaTypes, getWritableMediaTypes, writepublic reactor.core.publisher.Mono<Void> write(Publisher<? extends Part> parts, ResolvableType elementType, @Nullable MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String,Object> hints)
HttpMessageWriterwrite in interface HttpMessageWriter<Part>parts - the objects to writeelementType - the type of objects in the stream which must have been
previously checked via HttpMessageWriter.canWrite(ResolvableType, MediaType)mediaType - the content type for the write (possibly null to
indicate that the default content type of the writer must be used)outputMessage - the message to write tohints - additional information about how to encode and write