| Package | Description |
|---|---|
| org.apache.olingo.commons.api.format |
Contains all the format related objects (also related to http headers
Accepted
and Content-Type) which are used for handling of an OData responses and OData requests. |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.create(ContentType contentType,
String parameterName,
String parameterValue)
Creates a content type from an existing content type and an additional parameter as key-value pair.
|
static ContentType |
ContentType.create(String format)
Creates a
ContentType based on given input string (format). |
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 parameterName,
String parameterValue)
Creates a content type from an existing content type and an additional parameter as key-value pair.
|
static List<AcceptType> |
AcceptType.fromContentType(ContentType contentType)
Creates a list of
AcceptType objects based on given content type. |
boolean |
ContentType.isCompatible(ContentType other)
|
boolean |
AcceptType.matches(ContentType contentType)
Determines whether this accept type matches a given content type.
|
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.