Package | Description |
---|---|
org.apache.any23.servlet.conneg |
This package provides the Any23 content type negotiator.
|
Modifier and Type | Method and Description |
---|---|
MediaRangeSpec |
MediaRangeSpec.getBestMatch(List<MediaRangeSpec> mediaRanges) |
MediaRangeSpec |
ContentTypeNegotiator.getBestMatch(String accept)
Returns the
MediaRangeSpec
associated to the given accept type. |
MediaRangeSpec |
ContentTypeNegotiator.getBestMatch(String accept,
String userAgent)
Returns the
MediaRangeSpec
associated to the given accept type and userAgent. |
MediaRangeSpec |
ContentTypeNegotiator.VariantSpec.getMediaType() |
static MediaRangeSpec |
MediaRangeSpec.parseRange(String mediaRange)
Parses a media range from a string such as text/*;charset=utf-8;q=0.9.
|
static MediaRangeSpec |
MediaRangeSpec.parseType(String mediaType)
Parses a media type from a string such as text/html;charset=utf-8;q=0.9.
|
Modifier and Type | Method and Description |
---|---|
List<MediaRangeSpec> |
ContentTypeNegotiator.VariantSpec.getAliases() |
static List<MediaRangeSpec> |
MediaRangeSpec.parseAccept(String s)
Parses an HTTP Accept header into a List of MediaRangeSpecs
|
Modifier and Type | Method and Description |
---|---|
int |
MediaRangeSpec.getPrecedence(MediaRangeSpec range) |
Modifier and Type | Method and Description |
---|---|
MediaRangeSpec |
MediaRangeSpec.getBestMatch(List<MediaRangeSpec> mediaRanges) |
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.