Package io.undertow.server.handlers.form
Class FormParserFactory
java.lang.Object
io.undertow.server.handlers.form.FormParserFactory
Factory class that can create a form data parser for a given request.
It does this by iterating the available parser definitions, and returning the first parser that is created.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic FormParserFactory.Builderbuilder()static FormParserFactory.Builderbuilder(boolean includeDefault) createParser(HttpServerExchange exchange) Creates a form data parser for this request.
-
Method Details
-
createParser
Creates a form data parser for this request. If a parser has already been created for the request the existing parser will be returned rather than creating a new one.- Parameters:
exchange- The exchange- Returns:
- A form data parser, or null if there is no parser registered for the request content type
-
builder
-
builder
-