Package | Description |
---|---|
votorola.g.web |
Networking by web protocols.
|
Modifier and Type | Field and Description |
---|---|
static ContentType |
ContentType.ATOM
A ContentType constant that describes the base unqualified Atom content
type.
|
(package private) static ContentType |
ContentType.ATOM_ENTRY
A ContentType constant that describes the qualified Atom entry content
type.
|
(package private) static ContentType |
ContentType.ATOM_FEED
A ContentType constant that describes the qualified Atom feed content
type.
|
static ContentType |
ContentType.ATOM_SERVICE
A ContentType constant that describes the Atom Service content type.
|
static ContentType |
ContentType.JAVASCRIPT
A ContentType constant that describes the JavaScript content type.
|
static ContentType |
ContentType.JSON
A ContentType constant that describes the JSON content type.
|
static ContentType |
ContentType.MULTIPART_RELATED
A ContentType constant that describes the MIME multipart/related content
type.
|
static ContentType |
ContentType.RSS
A ContentType constant that describes the RSS channel/item content type.
|
static ContentType |
ContentType.TEXT_HTML
A ContentType constant that describes the generic text/html content type.
|
static ContentType |
ContentType.TEXT_PLAIN
A ContentType constant that describes the generic text/plain content type.
|
static ContentType |
ContentType.TEXT_XML
A ContentType constant that describes the generic text/xml content type.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.getAtomEntry()
Returns the ContentType that should be used in contexts that expect
an Atom entry.
|
static ContentType |
ContentType.getAtomFeed()
Returns the ContentType that should be used in contexts that expect
an Atom feed.
|
static ContentType |
ContentType.getBestContentType(String acceptHeader,
List<ContentType> actualContentTypes)
Determines the best "Content-Type" header to use in a servlet response
based on the "Accept" header from a servlet request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ContentType.match(ContentType acceptedContentType)
Returns whether this content type is match by the content type found in the
"Accept" header field of an HTTP request.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.getBestContentType(String acceptHeader,
List<ContentType> actualContentTypes)
Determines the best "Content-Type" header to use in a servlet response
based on the "Accept" header from a servlet request.
|