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.
Constructor and Description |
---|
EagerFormParsingHandler() |
EagerFormParsingHandler(FormParserFactory formParserFactory) |
Modifier and Type | Method and Description |
---|---|
HttpHandler | getNext() |
void | handleRequest(HttpServerExchange exchange) Handle the request. |
EagerFormParsingHandler | setNext(HttpHandler next) |
public EagerFormParsingHandler(FormParserFactory formParserFactory)
public EagerFormParsingHandler()
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 © 2015 JBoss by Red Hat. All rights reserved.