FormDataParser to the chain
that can parse the underlying form data asynchronously.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private String | |
| private boolean | |
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FormDataParser | create(final HttpServerExchange exchange)
Implements io.
|
| public String | |
| public boolean | |
| public FormEncodedDataDefinition | setDefaultEncoding(final String defaultEncoding)
Implements io.
|
| public FormEncodedDataDefinition |
| APPLICATION_X_WWW_FORM_URLENCODED | back to summary |
|---|---|
| public static final String APPLICATION_X_WWW_FORM_URLENCODED | |
| defaultEncoding | back to summary |
|---|---|
| private String defaultEncoding | |
| forceCreation | back to summary |
|---|---|
| private boolean forceCreation | |
| parseExceptionLogAsDebug | back to summary |
|---|---|
| private static boolean parseExceptionLogAsDebug | |
| FormEncodedDataDefinition | back to summary |
|---|---|
| public FormEncodedDataDefinition() | |
| create | back to summary |
|---|---|
| public FormDataParser create(final HttpServerExchange exchange) Implements io.
| |
| getDefaultEncoding | back to summary |
|---|---|
| public String getDefaultEncoding() | |
| isForceCreation | back to summary |
|---|---|
| public boolean isForceCreation() | |
| setDefaultEncoding | back to summary |
|---|---|
| public FormEncodedDataDefinition setDefaultEncoding(final String defaultEncoding) Implements io. | |
| setForceCreation | back to summary |
|---|---|
| public FormEncodedDataDefinition setForceCreation(boolean forceCreation) | |
| Modifier and Type | Field and Description |
|---|---|
| private final StringBuilder | |
| private String | |
| private final FormData | |
| private final HttpServerExchange | |
| private HttpHandler | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Implements io. Closes the parser, and removes and temporary files that may have been created. |
| private String | |
| private String | decodeParameterValue(String name, String value, String charset, boolean decodeSlash, StringBuilder stringBuilder)
|
| private void | |
| public void | handleEvent(final StreamSourceChannel
the channel event channel)Implements org. Handle the event on this channel. |
| public void | parse(HttpHandler handler)
Implements io. Parse the form data asynchronously. |
| public FormData | parseBlocking()
Implements io. Parse the data, blocking the current thread until parsing is complete. |
| public void | setCharacterEncoding(final String
The encoding encoding)Implements io. Sets the character encoding that will be used by this parser. |
| builder | back to summary |
|---|---|
| private final StringBuilder builder | |
| charset | back to summary |
|---|---|
| private String charset | |
| data | back to summary |
|---|---|
| private final FormData data | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| handler | back to summary |
|---|---|
| private HttpHandler handler | |
| name | back to summary |
|---|---|
| private String name | |
| state | back to summary |
|---|---|
| private int state | |
| FormEncodedDataParser | back to summary |
|---|---|
| private FormEncodedDataParser(final String charset, final HttpServerExchange exchange) | |
| addPair | back to summary |
|---|---|
| private void addPair(String name, String value) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements io. Doc from io. Closes the parser, and removes and temporary files that may have been created.
| |
| decodeParameterName | back to summary |
|---|---|
| private String decodeParameterName(String name, String charset, boolean decodeSlash, StringBuilder stringBuilder) | |
| decodeParameterValue | back to summary |
|---|---|
| private String decodeParameterValue(String name, String value, String charset, boolean decodeSlash, StringBuilder stringBuilder) | |
| doParse | back to summary |
|---|---|
| private void doParse(final StreamSourceChannel channel) throws IOException | |
| handleEvent | back to summary |
|---|---|
| public void handleEvent(final StreamSourceChannel channel) Implements org. Doc from org. Handle the event on this channel.
| |
| parse | back to summary |
|---|---|
| public void parse(HttpHandler handler) throws Exception Implements io. Doc from io. Parse the form data asynchronously. If all the data cannot be read immediately then a read listener will be registered, and the data will be parsed by the read thread.
When this method completes the handler will be invoked, and the data
will be attached under The method can either invoke the next handler directly, or may delegate to the IO thread to perform the parsing.
| |
| parseBlocking | back to summary |
|---|---|
| public FormData parseBlocking() throws IOException Implements io. Doc from io. Parse the data, blocking the current thread until parsing is complete. For blocking handlers this method is
more efficient than
| |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(final String encoding) Implements io. Doc from io. Sets the character encoding that will be used by this parser. If the request is already processed this will have no effect | |