Class SortedKey<T>

  • All Implemented Interfaces:
    Comparable<SortedKey<T>>, MediaTypeMap.Typed
    Direct Known Subclasses:
    ExtSortedKey

    public class SortedKey<T>
    extends Object
    implements Comparable<SortedKey<T>>, MediaTypeMap.Typed
    Allow us to sort message body implementations that are more specific for their types i.e. MessageBodyWriter<Object> is less specific than MessageBodyWriter<String>.

    This helps out a lot when the desired media type is a wildcard and to weed out all the possible default mappings.

    • Constructor Detail

      • SortedKey

        public SortedKey​(Class<?> intf,
                         T reader,
                         Class<?> readerClass,
                         int priority,
                         boolean isBuiltin)
      • SortedKey

        public SortedKey​(Class<?> intf,
                         T reader,
                         Class<?> readerClass,
                         boolean isBuiltin)
      • SortedKey

        public SortedKey​(Class<?> intf,
                         T reader,
                         Class<?> readerClass)
      • SortedKey

        public SortedKey​(T obj,
                         boolean isBuiltin,
                         Class<?> template,
                         int priority)
        Direct populate
        Parameters:
        obj -
        isBuiltin -
        template - template class of component type
        priority -