HttpHandler
public 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
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangejava.lang.Exception
public HttpHandler getNext()
public EagerFormParsingHandler setNext(HttpHandler next)
Copyright © 2018. All rights reserved.