Class MediaRanges


  • public final class MediaRanges
    extends java.lang.Object
    Contains a set of predefined media-ranges and static methods to create custom ones.
    • Method Detail

      • create

        public static MediaRange create​(MediaType mediaType)
        Creates a custom universal media-range for a given main-type.
      • custom

        public static MediaRange custom​(java.lang.String mainType,
                                        java.util.Map<java.lang.String,​java.lang.String> parameters)
        Creates a custom universal media-range for a given main-type and a Map of parameters.
      • create

        public static MediaRange create​(MediaType mediaType,
                                        float qValue)
        Creates a custom universal media-range for a given main-type and qValue.