public final class ParserMatch extends Object
Content-Type
header value.Constructor and Description |
---|
ParserMatch(MediaType mediaType,
Parser parser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MediaType |
getMediaType()
Returns the media type of the parser that matched the HTTP
Content-Type header value. |
Parser |
getParser()
Returns the parser that matched the HTTP
Content-Type header value. |
public ParserMatch(MediaType mediaType, Parser parser)
mediaType
- The media type of the match.parser
- The parser that matched.public MediaType getMediaType()
Content-Type
header value.Copyright © 2018 Apache. All rights reserved.