public class EagerFormParsingHandler extends 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 and Description |
---|---|
static class | EagerFormParsingHandler.Builder |
Modifier and Type | Field and Description |
---|---|
static HandlerWrapper | WRAPPER |
Constructor and Description |
---|
EagerFormParsingHandler() |
EagerFormParsingHandler(FormParserFactory formParserFactory) |
EagerFormParsingHandler(HttpHandler next) |
Modifier and Type | Method and 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 Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public HttpHandler getNext()
public EagerFormParsingHandler setNext(HttpHandler next)
Copyright © 2020 JBoss by Red Hat. All rights reserved.