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_CHARSET
logger
Constructor and Description |
---|
PartHttpMessageWriter() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
write(org.reactivestreams.Publisher<? extends Part> parts,
ResolvableType elementType,
MediaType mediaType,
ReactiveHttpOutputMessage outputMessage,
Map<String,Object> hints)
Write an given stream of object to the output message.
|
canWrite, generateBoundaryLine, generateLastLine, generateMultipartBoundary, generateNewLine, generatePartHeaders, getCharset, getMultipartMediaType, getWritableMediaTypes, setCharset
isEnableLoggingRequestDetails, setEnableLoggingRequestDetails
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canWrite, getWritableMediaTypes, getWritableMediaTypes, write
public reactor.core.publisher.Mono<Void> write(org.reactivestreams.Publisher<? extends Part> parts, ResolvableType elementType, @Nullable MediaType mediaType, ReactiveHttpOutputMessage outputMessage, Map<String,Object> hints)
HttpMessageWriter
write
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