Class SerializerMatch

java.lang.Object
org.apache.juneau.serializer.SerializerMatch

public final class SerializerMatch extends Object
Represents a serializer and media type that matches an HTTP Accept header value.
See Also:
  • Constructor Details

    • SerializerMatch

      public SerializerMatch(MediaType mediaType, Serializer serializer)
      Constructor.
      Parameters:
      mediaType - The media type matched.
      serializer - The serializer matched.
  • Method Details

    • getMediaType

      Returns the media type of the serializers that matched the HTTP Accept header value.
      Returns:
      The media type of the match.
    • getSerializer

      Returns the serializer that matched the HTTP Accept header value.
      Returns:
      The serializer of the match.