| Modifier and Type | Method and Description |
|---|---|
ContentType |
ContentNegotiator.doContentNegotiation(ODataRequest odataRequest,
UriInfoImpl uriInfo,
List<String> supportedContentTypes)
Do the content negotiation for
accept header value based on
requested content type (in HTTP accept header from ODataRequest)
in combination with uri information from UriInfo and from given supported
content types (via
supportedContentTypes). |
| Modifier and Type | Method and Description |
|---|---|
static Charset |
BatchHelper.extractCharset(ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.create(ContentType contentType,
String parameterKey,
String parameterValue) |
static ContentType |
ContentType.create(String format)
Create a
ContentType based on given input string (format). |
static ContentType |
ContentType.create(String type,
String subtype)
Creates a content type from type and subtype
|
static ContentType |
ContentType.create(String type,
String subtype,
Map<String,String> parameters) |
static ContentType |
ContentType.createAsCustom(String format)
Create a
ContentType based on given input string (format). |
ContentType |
ContentType.match(List<ContentType> toMatchContentTypes)
Find best match between this
ContentType and the ContentType in the list. |
ContentType |
ContentType.matchCompatible(List<ContentType> toMatchContentTypes)
Find best match between this
ContentType and the ContentType in the list ignoring all set
parameters. |
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. |
ContentType |
ContentType.receiveWithCharsetParameter(String defaultCharset)
Ensure that charset parameter (
PARAMETER_CHARSET) is set on returned content type
if this ContentType is a odata text related content type (@see
isContentTypeODataTextRelated()). |
| Modifier and Type | Method and Description |
|---|---|
static List<ContentType> |
ContentType.convert(List<String> types) |
static List<ContentType> |
ContentType.create(List<String> contentTypeStrings)
Create a list of
ContentType based on given input strings (contentTypes). |
static List<ContentType> |
ContentType.createAsCustom(List<String> contentTypeStrings)
Create a list of
ContentType based on given input strings (contentTypes). |
| Modifier and Type | Method and Description |
|---|---|
int |
ContentType.compareWildcardCounts(ContentType otherContentType)
Compare wildcards counts/weights of both
ContentType. |
static ContentType |
ContentType.create(ContentType contentType,
String parameterKey,
String parameterValue) |
boolean |
ContentType.isCompatible(ContentType obj)
ContentTypes are compatible
if type, subtype have the same value.
if type and/or subtype is set to "*"
The set parameters are always ignored (for compare with parameters see equals(Object)
). |
static boolean |
ContentType.match(String toMatch,
ContentType... matchExamples)
Check if a valid match for given content type formated string (
toMatch) exists in given list. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ContentType.hasCompatible(List<ContentType> toMatchContentTypes)
Check if a valid compatible match for this
ContentType exists in given list. |
boolean |
ContentType.hasMatch(List<ContentType> toMatchContentTypes)
Check if a valid match for this
ContentType exists in given list. |
ContentType |
ContentType.match(List<ContentType> toMatchContentTypes)
Find best match between this
ContentType and the ContentType in the list. |
ContentType |
ContentType.matchCompatible(List<ContentType> toMatchContentTypes)
Find best match between this
ContentType and the ContentType in the list ignoring all set
parameters. |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
RestUtil.extractRequestContentType(SubLocatorParameter param) |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
RestUtil.extractRequestContentType(String contentType) |
Copyright © 2020. All rights reserved.