A CompletableFuture that is completed once a application/x-www-form-urlencoded
content has been parsed asynchronously from the Content..
| Modifier and Type | Field and Description |
|---|---|
| private final CharsetStringBuilder | |
| private final Fields | |
| private int | |
| private final int | |
| private final int | |
| private String | |
| private int | |
| private byte | |
| private static final CompletableFuture | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static CompletableFuture | from(Request
The request)Request in which to look for an existing FormFields attribute,
using the classname as the attribute name, else the request is used
as a Content. from which to read the fields and set the attribute.Find or create a |
| public static CompletableFuture | from(Request
The request, Charset Request in which to look for an existing FormFields attribute,
using the classname as the attribute name, else the request is used
as a Content. from which to read the fields and set the attribute.the charset)Charset to use for byte to string conversion.Find or create a |
| public static CompletableFuture | from(Request
The request, int Request in which to look for an existing FormFields attribute,
using the classname as the attribute name, else the request is used
as a Content. from which to read the fields and set the attribute.The maximum number of fields to be parsed maxFields, int The maximum total size of the fields maxLength)Find or create a |
| public static CompletableFuture | from(Request
The request, Charset Request in which to look for an existing FormFields attribute,
using the classname as the attribute name, else the request is used
as a Content. from which to read the fields and set the attribute.the charset, int Charset to use for byte to string conversion.The maximum number of fields to be parsed maxFields, int The maximum total size of the fields maxLength)Find or create a |
| pack-priv static CompletableFuture | from(Content.
The source,Content. from which to read the fields.The attributes, Charset Attributes in which to look for an existing CompletableFuture of
FormFields, using the classname as the attribute name. If not found the attribute
is set with the created CompletableFuture of FormFields.the charset, int Charset to use for byte to string conversion.The maximum number of fields to be parsed maxFields, int The maximum total size of the fields maxLength)Find or create a |
| public static CompletableFuture | Returns: ACompletableFuture that will provide either the fields or a failure, or null if none set.The request to enquire from request)
|
| public static Charset | |
| private static int | |
| private void | |
| protected Fields | parse(Content.
The chunk containing content to parse. The chunk will never be chunknull nor a
failure chunk.
If the chunk is stored away to be used later beyond the scope of this call,
then implementations must call Content. and
Content. as appropriate.Implements abstract org. Called by |
| public static void | set(Request
The request to which to associate the fields with request, CompletableFuture<Fields> A fields)CompletableFuture that will provide either the fields or a failure.Set a |
| _builder | back to summary |
|---|---|
| private final CharsetStringBuilder _builder | |
| _fields | back to summary |
|---|---|
| private final Fields _fields | |
| _length | back to summary |
|---|---|
| private int _length | |
| _maxFields | back to summary |
|---|---|
| private final int _maxFields | |
| _maxLength | back to summary |
|---|---|
| private final int _maxLength | |
| _name | back to summary |
|---|---|
| private String _name | |
| _percent | back to summary |
|---|---|
| private int _percent | |
| _percentCode | back to summary |
|---|---|
| private byte _percentCode | |
| EMPTY | back to summary |
|---|---|
| private static final CompletableFuture<Fields> EMPTY | |
| MAX_FIELDS_ATTRIBUTE | back to summary |
|---|---|
| public static final String MAX_FIELDS_ATTRIBUTE | |
| MAX_LENGTH_ATTRIBUTE | back to summary |
|---|---|
| public static final String MAX_LENGTH_ATTRIBUTE | |
| FormFields | back to summary |
|---|---|
| private FormFields(Content. | |
| checkMaxLength | back to summary |
|---|---|
| private void checkMaxLength(String nameOrValue) | |
| from | back to summary |
|---|---|
| public static CompletableFuture Find or create a
| |
| from | back to summary |
|---|---|
| public static CompletableFuture Find or create a
| |
| from | back to summary |
|---|---|
| public static CompletableFuture Find or create a
| |
| from | back to summary |
|---|---|
| public static CompletableFuture Find or create a
| |
| from | back to summary |
|---|---|
| pack-priv static CompletableFuture Find or create a
| |
| get | back to summary |
|---|---|
public static CompletableFuture
| |
| getFormEncodedCharset | back to summary |
|---|---|
| public static Charset getFormEncodedCharset(Request request) | |
| getRequestAttribute | back to summary |
|---|---|
| private static int getRequestAttribute(Request request, String attribute) | |
| onNewField | back to summary |
|---|---|
| private void onNewField(String name, String value) | |
| parse | back to summary |
|---|---|
| protected Fields parse(Content. Implements abstract org. Doc from org. Called by
| |
| set | back to summary |
|---|---|
| public static void set(Request request, CompletableFuture<Fields> fields) Set a
| |