Class FormParserFactory

java.lang.Object
io.undertow.server.handlers.form.FormParserFactory

public class FormParserFactory extends Object
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
  • Method Details

    • createParser

      public FormDataParser createParser(HttpServerExchange exchange)
      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

      public static FormParserFactory.Builder builder()
    • builder

      public static FormParserFactory.Builder builder(boolean includeDefault)