public interface FormDataParser extends Closeable
| Modifier and Type | Field and Description |
|---|---|
static AttachmentKey<FormData> |
FORM_DATA
When the form data is parsed it will be attached under this key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the parser, and removes and temporary files that may have been created.
|
void |
parse(HttpHandler next)
Parse the form data asynchronously.
|
FormData |
parseBlocking()
Parse the data, blocking the current thread until parsing is complete.
|
void |
setCharacterEncoding(String encoding)
Sets the character encoding that will be used by this parser.
|
static final AttachmentKey<FormData> FORM_DATA
void parse(HttpHandler next) throws Exception
FORM_DATA.
The method can either invoke the next handler directly, or may delegate to the IO thread
to perform the parsing.ExceptionFormData parseBlocking() throws IOException
#parse(), as the calling thread should do that actual parsing, rather than the
read threadIOException - If the data could not be readvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionvoid setCharacterEncoding(String encoding)
encoding - The encodingCopyright © 2013 JBoss by Red Hat. All Rights Reserved.