Package io.undertow.server.handlers.form
Class EagerFormParsingHandler
java.lang.Object
io.undertow.server.handlers.form.EagerFormParsingHandler
- All Implemented Interfaces:
HttpHandler
Handler that eagerly parses form data. The request chain will pause while the data is being read,
and then continue when the form data is fully passed.
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.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext()
void
handleRequest
(HttpServerExchange exchange) Handle the request.setNext
(HttpHandler next) toString()
-
Field Details
-
WRAPPER
-
-
Constructor Details
-
EagerFormParsingHandler
-
EagerFormParsingHandler
public EagerFormParsingHandler() -
EagerFormParsingHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
getNext
-
setNext
-
toString
-