Class MessageBodyWriterSubSet


  • @Deprecated
    public class MessageBodyWriterSubSet
    extends java.lang.Object
    Deprecated.
    Will be removed in next minor release.
    Contains a List of wrapped MessageBodyWriters.
    • Field Detail

      • genericType

        private final java.lang.reflect.Type genericType
        Deprecated.
        The type supported by the contained message body writers, given by the type parameter of the MessageBodyWriter. Could be null.
      • type

        private final java.lang.Class<?> type
        Deprecated.
        The class supported by the contained message body writers, given by the type parameter of the MessageBodyWriter. Could be null.
    • Constructor Detail

      • MessageBodyWriterSubSet

        MessageBodyWriterSubSet​(java.util.List<MessageBodyWriter> mbws,
                                java.lang.Class<?> type,
                                java.lang.reflect.Type genericType)
        Deprecated.
    • Method Detail

      • getAllProducibleMediaTypes

        public java.util.Collection<MediaType> getAllProducibleMediaTypes()
        Deprecated.
        returns a list of all producible media types.
        Returns:
        a list of all producible media types. If this set is not empty, this result is not empty. '*/*' is returned for a message body writer with no @Produces annotation.
      • getBestWriter

        public MessageBodyWriter getBestWriter​(MediaType determinedResponseMediaType,
                                               java.lang.annotation.Annotation[] annotations,
                                               SortedMetadata<MediaType> accMediaTypes)
        Deprecated.
        Finds a MessageBodyWriter in this Set that best matches media types of the response method and of the accepted MediaTypes.
        Parameters:
        determinedResponseMediaType - The MediaTypes of the response, declared by the resource methods or given by the Response.
        annotations -
        accMediaTypes - the accepted media types.
        Returns:
        A MessageBodyWriter that best matches the given accepted. Returns null, if no adequate MessageBodyWriter could be found in this set.
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Returns true, if this set is empty
        Returns:
        true, if this set is empty