HttpHandlerpublic class EagerFormParsingHandler extends java.lang.Object implements HttpHandler
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 | Description |
|---|---|---|
static class |
EagerFormParsingHandler.Builder |
| Modifier and Type | Field | Description |
|---|---|---|
static HandlerWrapper |
WRAPPER |
| Constructor | Description |
|---|---|
EagerFormParsingHandler() |
|
EagerFormParsingHandler(FormParserFactory formParserFactory) |
|
EagerFormParsingHandler(HttpHandler next) |
| Modifier and Type | Method | Description |
|---|---|---|
HttpHandler |
getNext() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
EagerFormParsingHandler |
setNext(HttpHandler next) |
public static final HandlerWrapper WRAPPER
public EagerFormParsingHandler(FormParserFactory formParserFactory)
public EagerFormParsingHandler()
public EagerFormParsingHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangejava.lang.Exceptionpublic HttpHandler getNext()
public EagerFormParsingHandler setNext(HttpHandler next)
Copyright © 2018. All rights reserved.