| Package | Description |
|---|---|
| org.apache.olingo.commons.api.format |
| Modifier and Type | Field and Description |
|---|---|
static ContentType |
ContentType.APPLICATION_ATOM_SVC |
static ContentType |
ContentType.APPLICATION_ATOM_XML |
static ContentType |
ContentType.APPLICATION_ATOM_XML_ENTRY |
static ContentType |
ContentType.APPLICATION_ATOM_XML_FEED |
static ContentType |
ContentType.APPLICATION_FORM_URLENCODED |
static ContentType |
ContentType.APPLICATION_JSON |
static ContentType |
ContentType.APPLICATION_OCTET_STREAM |
static ContentType |
ContentType.APPLICATION_SVG_XML |
static ContentType |
ContentType.APPLICATION_XHTML_XML |
static ContentType |
ContentType.APPLICATION_XML |
static ContentType |
ContentType.MULTIPART_FORM_DATA |
static ContentType |
ContentType.MULTIPART_MIXED |
static ContentType |
ContentType.TEXT_HTML |
static ContentType |
ContentType.TEXT_PLAIN |
static ContentType |
ContentType.TEXT_XML |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.create(ContentType contentType,
String... parameters)
Creates a content type from format and key-value pairs for parameters
|
static ContentType |
ContentType.create(String format)
Creates a
ContentType based on given input string (format). |
static ContentType |
ContentType.create(String format,
String... parameters)
Creates a content type from format and key-value pairs for parameters
|
ContentType |
ODataFormat.getContentType(ODataServiceVersion version)
Gets format as
ContentType. |
static ContentType |
ContentType.parse(String format)
Parses the given input string (
format) and returns created ContentType if input was valid or
return NULL if input was not parseable. |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.create(ContentType contentType,
String... parameters)
Creates a content type from format and key-value pairs for parameters
|
static ODataFormat |
ODataFormat.fromContentType(ContentType contentType)
Gets OData format from a content type.
|
boolean |
ContentType.isCompatible(ContentType obj)
|
boolean |
AcceptType.matches(ContentType contentType)
Determines whether this accept type matches a given content type.
|
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.