HttpMessageWriter for writing PartEvent objects. Useful for
server-side proxies, that relay multipart requests to others services.
PartEvent
| 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 Flux | encodePartData(byte[] boundary, DataBufferFactory bufferFactory, HttpHeaders headers, Flux<DataBuffer> body)
|
| public Mono | write(Publisher<? extends PartEvent>
the objects to write partDataStream, 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. |
| PartEventHttpMessageWriter | back to summary |
|---|---|
| public PartEventHttpMessageWriter() | |
| 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.
| |
| encodePartData | back to summary |
|---|---|
| private Flux | |
| write | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Write a given stream of object to the output message.
| |