HttpMessageReader for reading "multipart/form-data" requests
into a MultiValueMap<String, Part>.
Note that this reader depends on access to an
HttpMessageReader<Part> for the actual parsing of multipart content.
The purpose of this reader is to collect the parts into a map.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final List | |
| private static final ResolvableType | |
| private final HttpMessageReader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canRead(ResolvableType
the type of object to check elementType, MediaType the media type for the read (possibly mediaType)null)Implements org. |
| public HttpMessageReader | |
| public List | getReadableMediaTypes()
Implements org. |
| public Flux | read(ResolvableType
the type of objects in the stream which must have been
previously checked via elementType, ReactiveHttpInputMessage canRead(ResolvableType, MediaType)the message to read from message, Map<String, Object> additional information about how to read and decode the input hints)Implements org. |
| public Mono | readMono(ResolvableType
the type of objects in the stream which must have been
previously checked via elementType, ReactiveHttpInputMessage canRead(ResolvableType, MediaType)the message to read from inputMessage, Map<String, Object> additional information about how to read and decode the input hints)Implements org. |
| private boolean | |
| private List | |
| private LinkedMultiValueMap |
| MIME_TYPES | back to summary |
|---|---|
| pack-priv static final List<MediaType> MIME_TYPES | |
| MULTIPART_VALUE_TYPE | back to summary |
|---|---|
| private static final ResolvableType MULTIPART_VALUE_TYPE | |
| partReader | back to summary |
|---|---|
| private final HttpMessageReader<Part> partReader | |
| MultipartHttpMessageReader | back to summary |
|---|---|
| public MultipartHttpMessageReader(HttpMessageReader<Part> partReader) | |
| canRead | back to summary |
|---|---|
| public boolean canRead(ResolvableType elementType, MediaType mediaType) Implements org. Doc from org. Whether the given object type is supported by this reader.
| |
| getPartReader | back to summary |
|---|---|
| public HttpMessageReader Return the configured parts reader.
| |
| getReadableMediaTypes | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the list of media types supported by this reader. The list may not
apply to every possible target element type and calls to this method
should typically be guarded via | |
| read | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Read from the input message and decode to a stream of objects.
| |
| readMono | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Read from the input message and decode to a single object.
| |
| supportsMediaType | back to summary |
|---|---|
| private boolean supportsMediaType(MediaType mediaType) | |
| toList | back to summary |
|---|---|
| private List | |
| toMultiValueMap | back to summary |
|---|---|
| private LinkedMultiValueMap | |