This parser must be closed to make sure any temporary files have been cleaned up.
| Modifier and Type | Field and Description |
|---|---|
| public static final AttachmentKey | FORM_DATA
When the form data is parsed it will be attached under this key. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. Closes the parser, and removes and temporary files that may have been created. |
| public void | |
| public FormData | Returns: The parsed form dataParse the data, blocking the current thread until parsing is complete. |
| public void | setCharacterEncoding(String
The encoding encoding)Sets the character encoding that will be used by this parser. |
| FORM_DATA | back to summary |
|---|---|
| public static final AttachmentKey<FormData> FORM_DATA When the form data is parsed it will be attached under this key. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Redeclares java. Closes the parser, and removes and temporary files that may have been created.
| |
| parse | back to summary |
|---|---|
| public void parse(final HttpHandler next) throws Exception 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 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(String encoding) Sets the character encoding that will be used by this parser. If the request is already processed this will have no effect
| |