public class MimeTypeRange extends Object
Modifier and Type | Field and Description |
---|---|
static MimeTypeRange |
ALL |
String |
majorType |
Map<String,String> |
parameters |
float |
q
Each media-range MAY be followed by one or more accept-params,
beginning with the "q" parameter for indicating a relative quality
factor.
|
String |
subType |
Constructor and Description |
---|
MimeTypeRange(String s) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static MimeTypeRange |
merge(Collection<MimeTypeRange> types)
Creates a range by merging all the given types.
|
static List<MimeTypeRange> |
parseRanges(String s) |
MimeType |
toMimeType() |
String |
toString() |
public final String majorType
public final String subType
public final float q
public static final MimeTypeRange ALL
public MimeTypeRange(String s) throws ParseException
ParseException
public static List<MimeTypeRange> parseRanges(String s) throws ParseException
ParseException
public MimeType toMimeType() throws MimeTypeParseException
MimeTypeParseException
public static MimeTypeRange merge(Collection<MimeTypeRange> types)
public static void main(String[] args) throws ParseException
ParseException
Copyright © 2017 JBoss by Red Hat. All rights reserved.