HttpMessageReader to read HTML form data, i.e.
request body with media type "application/x-www-form-urlencoded".
| Modifier and Type | Field and Description |
|---|---|
| public static final Charset | DEFAULT_CHARSET
The default charset used by the reader. |
| private Charset | |
| private int | |
| private static final ResolvableType |
| 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 Charset | |
| public int | |
| private Charset | |
| public List | getReadableMediaTypes()
Implements org. |
| private void | |
| private MultiValueMap | |
| 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 | setDefaultCharset(Charset charset)
Set the default character set to use for reading form data when the request Content-Type header does not explicitly specify it. |
| public void | setMaxInMemorySize(int
the max number of bytes to buffer, or -1 for unlimited byteCount)Set the max number of bytes for input form data. |
| private static boolean |
| DEFAULT_CHARSET | back to summary |
|---|---|
| public static final Charset DEFAULT_CHARSET The default charset used by the reader. | |
| defaultCharset | back to summary |
|---|---|
| private Charset defaultCharset | |
| maxInMemorySize | back to summary |
|---|---|
| private int maxInMemorySize | |
| MULTIVALUE_STRINGS_TYPE | back to summary |
|---|---|
| private static final ResolvableType MULTIVALUE_STRINGS_TYPE | |
| FormHttpMessageReader | back to summary |
|---|---|
| public FormHttpMessageReader() | |
| 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.
| |
| getDefaultCharset | back to summary |
|---|---|
| public Charset getDefaultCharset() Return the configured default charset. | |
| getMaxInMemorySize | back to summary |
|---|---|
| public int getMaxInMemorySize() Return the
| |
| getMediaTypeCharset | back to summary |
|---|---|
| private Charset getMediaTypeCharset(MediaType mediaType) | |
| 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 | |
| logFormData | back to summary |
|---|---|
| private void logFormData(MultiValueMap<String, String> formData, Map<String, Object> hints) | |
| parseFormData | back to summary |
|---|---|
| private MultiValueMap | |
| 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.
| |
| setDefaultCharset | back to summary |
|---|---|
| public void setDefaultCharset(Charset charset) Set the default character set to use for reading form data when the request Content-Type header does not explicitly specify it. By default this is set to "UTF-8". | |
| setMaxInMemorySize | back to summary |
|---|---|
| public void setMaxInMemorySize(int byteCount) Set the max number of bytes for input form data. As form data is buffered
before it is parsed, this helps to limit the amount of buffering. Once
the limit is exceeded, By default this is set to 256K.
| |
| supportsMediaType | back to summary |
|---|---|
| private static boolean supportsMediaType(MediaType mediaType) | |