public final class MediaRanges
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MediaRange |
ALL |
static MediaRange |
ALL_APPLICATION |
static MediaRange |
ALL_AUDIO |
static MediaRange |
ALL_IMAGE |
static MediaRange |
ALL_MESSAGE |
static MediaRange |
ALL_MULTIPART |
static MediaRange |
ALL_TEXT |
static MediaRange |
ALL_VIDEO |
Modifier and Type | Method and Description |
---|---|
static MediaRange |
create(MediaType mediaType)
Creates a custom universal media-range for a given main-type.
|
static MediaRange |
create(MediaType mediaType,
float qValue)
Creates a custom universal media-range for a given main-type and qValue.
|
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.
|
public static final MediaRange ALL
public static final MediaRange ALL_APPLICATION
public static final MediaRange ALL_AUDIO
public static final MediaRange ALL_IMAGE
public static final MediaRange ALL_MESSAGE
public static final MediaRange ALL_MULTIPART
public static final MediaRange ALL_TEXT
public static final MediaRange ALL_VIDEO
public static MediaRange create(MediaType mediaType)
public static MediaRange custom(java.lang.String mainType, java.util.Map<java.lang.String,java.lang.String> parameters)
public static MediaRange create(MediaType mediaType, float qValue)