NOTE: This is not strictly compatible with servlet, as it removes the option for the user to parse the request themselves, however in practice this requirement is probably rare, and using this handler gives a significant performance advantage in that a thread is not blocked for the duration of the upload.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final FormParserFactory | |
| private volatile HttpHandler | |
| public static final HandlerWrapper |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public EagerFormParsingHandler | |
| public String |
| formParserFactory | back to summary |
|---|---|
| private final FormParserFactory formParserFactory | |
| next | back to summary |
|---|---|
| private volatile HttpHandler next | |
| WRAPPER | back to summary |
|---|---|
| public static final HandlerWrapper WRAPPER | |
| EagerFormParsingHandler | back to summary |
|---|---|
| public EagerFormParsingHandler(final FormParserFactory formParserFactory) | |
| EagerFormParsingHandler | back to summary |
|---|---|
| public EagerFormParsingHandler() | |
| EagerFormParsingHandler | back to summary |
|---|---|
| public EagerFormParsingHandler(HttpHandler next) | |
| getNext | back to summary |
|---|---|
| public HttpHandler getNext() | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| setNext | back to summary |
|---|---|
| public EagerFormParsingHandler setNext(final HttpHandler next) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HandlerWrapper | build(Map<String, Object>
The handler config config)Implements io. Creates the handler |
| public String | |
| public String | name()
Implements io. The string representation of the handler name. |
| public Map | parameters()
Implements io. Returns a map of parameters and their types. |
| public Set |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public HandlerWrapper build(Map<String, Object> config) Implements io. Doc from io. Creates the handler
| |
| defaultParameter | back to summary |
|---|---|
| public String defaultParameter() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The string representation of the handler name. | |
| parameters | back to summary |
|---|---|
| public Map Implements io. Doc from io. Returns a map of parameters and their types.
| |
| requiredParameters | back to summary |
|---|---|
| public Set Implements io.
| |