PartEvent
| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private int | |
| private int | |
| private int | |
| private long |
| 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. |
| private Publisher | |
| public int | |
| 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 message, Map<String, Object> additional information about how to read and decode the input hints)Implements org. |
| public void | setHeadersCharset(Charset
the charset to use for decoding headers headersCharset)Set the character set used to decode headers. |
| public void | setMaxHeadersSize(int
the maximum amount of memory for headers byteCount)Configure the maximum amount of memory that is allowed per headers section of each part. |
| public void | setMaxInMemorySize(int
the in-memory limit in bytes; if set to -1 the entire
contents will be stored in memory maxInMemorySize)Configure the maximum amount of memory allowed for form fields. |
| public void | |
| public void | |
| private boolean | |
| private boolean |
| headersCharset | back to summary |
|---|---|
| private Charset headersCharset | |
| maxHeadersSize | back to summary |
|---|---|
| private int maxHeadersSize | |
| maxInMemorySize | back to summary |
|---|---|
| private int maxInMemorySize | |
| maxParts | back to summary |
|---|---|
| private int maxParts | |
| maxPartSize | back to summary |
|---|---|
| private long maxPartSize | |
| PartEventHttpMessageReader | back to summary |
|---|---|
| public PartEventHttpMessageReader() | |
| 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.
| |
| createEvents | back to summary |
|---|---|
| private Publisher | |
| getMaxInMemorySize | back to summary |
|---|---|
| public int getMaxInMemorySize() Get the | |
| 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.
| |
| setHeadersCharset | back to summary |
|---|---|
| public void setHeadersCharset(Charset headersCharset) Set the character set used to decode headers. Defaults to UTF-8 as per RFC 7578.
| |
| setMaxHeadersSize | back to summary |
|---|---|
| public void setMaxHeadersSize(int byteCount) Configure the maximum amount of memory that is allowed per headers section of each part. Defaults to 10K.
| |
| setMaxInMemorySize | back to summary |
|---|---|
| public void setMaxInMemorySize(int maxInMemorySize) Configure the maximum amount of memory allowed for form fields.
When the limit is exceeded, form fields parts are rejected with
By default this is set to 256K.
| |
| setMaxParts | back to summary |
|---|---|
| public void setMaxParts(int maxParts) Specify the maximum number of parts allowed in a given multipart request. By default this is set to -1, meaning that there is no maximum.
| |
| setMaxPartSize | back to summary |
|---|---|
| public void setMaxPartSize(long maxPartSize) Configure the maximum size allowed for any part. By default this is set to -1, meaning that there is no maximum.
| |
| tooLarge | back to summary |
|---|---|
| private boolean tooLarge(AtomicLong partSize, DataBuffer buffer) | |
| tooManyParts | back to summary |
|---|---|
| private boolean tooManyParts(AtomicInteger partCount) | |