Class ParserMatch

java.lang.Object
org.apache.juneau.parser.ParserMatch

public final class ParserMatch extends Object
Represents a parser and media type that matches an HTTP Content-Type header value.
See Also:
  • Constructor Details

    • ParserMatch

      public ParserMatch(MediaType mediaType, Parser parser)
      Constructor.
      Parameters:
      mediaType - The media type of the match.
      parser - The parser that matched.
  • Method Details

    • getMediaType

      Returns the media type of the parser that matched the HTTP Content-Type header value.
      Returns:
      The media type of the match.
    • getParser

      public Parser getParser()
      Returns the parser that matched the HTTP Content-Type header value.
      Returns:
      The parser of the match.