Package org.apache.juneau.serializer
Class SerializerMatch
java.lang.Object
org.apache.juneau.serializer.SerializerMatch
Represents a serializer and media type that matches an HTTP Accept header value.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the media type of the serializers that matched the HTTPAccept header value.Returns the serializer that matched the HTTPAccept header value.
-
Constructor Details
-
SerializerMatch
Constructor.- Parameters:
mediaType
- The media type matched.serializer
- The serializer matched.
-
-
Method Details
-
getMediaType
Returns the media type of the serializers that matched the HTTPAccept header value.- Returns:
- The media type of the match.
-
getSerializer
Returns the serializer that matched the HTTPAccept header value.- Returns:
- The serializer of the match.
-