| Modifier and Type | Method and Description |
|---|---|
MediaType |
HttpHeaders.getMediaType() |
static MediaType |
MediaType.valueOf(String type)
Creates a new instance of
MediaType by parsing the supplied string. |
MediaType |
MediaType.withCharset(String charset)
Create a new
MediaType instance with the same type, subtype and parameters
copied from the original instance and the supplied ""charset"" parameter. |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
HttpHeaders.getAcceptableMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaType.isCompatible(MediaType other)
Check if this media type is compatible with another media type.
|
void |
HttpHeaders.setMediaType(MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpHeaders.setAcceptableMediaTypes(List<MediaType> acceptableMediaTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Segment.isResponseMediaTypeAllowed(List<MediaType> accepts) |
| Modifier and Type | Method and Description |
|---|---|
static List<MediaType> |
HttpUtil.extractAccepts(MultivaluedMap<String,String> requestHeaders) |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaTypeHelper.getBestMatch(List<MediaType> desired,
List<MediaType> provided) |
| Modifier and Type | Method and Description |
|---|---|
static List<MediaType> |
MediaTypeHelper.parseHeader(String header) |
| Modifier and Type | Method and Description |
|---|---|
static int |
MediaTypeHelper.compareWeight(MediaType one,
MediaType two) |
static boolean |
MediaTypeHelper.equivalent(MediaType m1,
MediaType m2) |
static boolean |
MediaTypeHelper.equivalentParams(MediaType m1,
MediaType m2) |
static float |
MediaTypeHelper.getQ(MediaType type) |
static float |
MediaTypeHelper.getQWithParamInfo(MediaType type) |
static boolean |
MediaTypeHelper.sameWeight(MediaType one,
MediaType two) |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaTypeHelper.getBestMatch(List<MediaType> desired,
List<MediaType> provided) |
static MediaType |
MediaTypeHelper.getBestMatch(List<MediaType> desired,
List<MediaType> provided) |
static void |
MediaTypeHelper.sortByWeight(List<MediaType> types) |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaTypeHeaderParser.fromString(String type) |
static MediaType |
MediaTypeHeaderParser.parse(String type) |
| Modifier and Type | Method and Description |
|---|---|
static String |
MediaTypeHeaderParser.toString(MediaType type) |
Copyright © 2016. All rights reserved.