public final class MediaTypeParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
bestMatch(Collection<String> supported,
String header)
Takes a list of supported mime-types and finds the best match for all the
media-ranges listed in header.
|
static float |
quality(String mimeType,
String ranges)
Returns the quality 'q' of a mime-type when compared against the
mediaRanges in ranges.
|
public static float quality(String mimeType, String ranges)
mimeType - ranges - public static String bestMatch(Collection<String> supported, String header)
supported - header - Copyright © 2011 restSQL Project Contributors