Package | Description |
---|---|
org.restsql.core.impl |
Contains core framework implementation.
|
Modifier and Type | Method and Description |
---|---|
protected static MediaTypeParser.ParseResults |
MediaTypeParser.parseMediaRange(String range)
Carves up a media range and returns a ParseResults.
|
protected static MediaTypeParser.ParseResults |
MediaTypeParser.parseMimeType(String mimeType)
Carves up a mime-type and returns a ParseResults object
For example, the media range 'application/xhtml;q=0.5' would get parsed
into:
('application', 'xhtml', {'q', '0.5'})
|
Modifier and Type | Method and Description |
---|---|
protected static MediaTypeParser.FitnessAndQuality |
MediaTypeParser.fitnessAndQualityParsed(String mimeType,
Collection<MediaTypeParser.ParseResults> parsedRanges)
Find the best match for a given mimeType against a list of media_ranges
that have already been parsed by MimeParse.parseMediaRange().
|
protected static float |
MediaTypeParser.qualityParsed(String mimeType,
Collection<MediaTypeParser.ParseResults> parsedRanges)
Find the best match for a given mime-type against a list of ranges that
have already been parsed by parseMediaRange().
|
Copyright © 2011-2018 restSQL Project Contributors