Class 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.

    Stuart Douglas
    • Method Detail

      • 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.
        exchange - The exchange
        A form data parser, or null if there is no parser registered for the request content type