Uses of Class
org.apache.olingo.odata2.core.commons.ContentType
-
-
Uses of ContentType in org.apache.olingo.odata2.core
Methods in org.apache.olingo.odata2.core that return ContentType Modifier and Type Method Description ContentTypeContentNegotiator. doContentNegotiation(ODataRequest odataRequest, UriInfoImpl uriInfo, List<String> supportedContentTypes)Do the content negotiation foraccept header valuebased on requested content type (in HTTP accept header fromODataRequest) in combination with uri information fromUriInfoand from given supported content types (viasupportedContentTypes). -
Uses of ContentType in org.apache.olingo.odata2.core.batch
Methods in org.apache.olingo.odata2.core.batch with parameters of type ContentType Modifier and Type Method Description static CharsetBatchHelper. extractCharset(ContentType contentType) -
Uses of ContentType in org.apache.olingo.odata2.core.commons
Methods in org.apache.olingo.odata2.core.commons that return ContentType Modifier and Type Method Description static ContentTypeContentType. create(String format)Create aContentTypebased on given input string (format).static ContentTypeContentType. create(String type, String subtype)Creates a content type from type and subtypestatic ContentTypeContentType. create(String type, String subtype, Map<String,String> parameters)static ContentTypeContentType. create(ContentType contentType, String parameterKey, String parameterValue)static ContentTypeContentType. createAsCustom(String format)Create aContentTypebased on given input string (format).ContentTypeContentType. match(List<ContentType> toMatchContentTypes)Find best match between thisContentTypeand theContentTypein the list.ContentTypeContentType. matchCompatible(List<ContentType> toMatchContentTypes)Find best match between thisContentTypeand theContentTypein the list ignoring all set parameters.static ContentTypeContentType. parse(String format)Parses the given input string (format) and returns createdContentTypeif input was valid or returnNULLif input was not parseable.ContentTypeContentType. receiveWithCharsetParameter(String defaultCharset)Ensure that charset parameter (PARAMETER_CHARSET) is set on returned content type if thisContentTypeis aodata text relatedcontent type (@seeisContentTypeODataTextRelated()).Methods in org.apache.olingo.odata2.core.commons that return types with arguments of type ContentType Modifier and Type Method Description static List<ContentType>ContentType. convert(List<String> types)static List<ContentType>ContentType. create(List<String> contentTypeStrings)Create a list ofContentTypebased on given input strings (contentTypes).static List<ContentType>ContentType. createAsCustom(List<String> contentTypeStrings)Create a list ofContentTypebased on given input strings (contentTypes).Methods in org.apache.olingo.odata2.core.commons with parameters of type ContentType Modifier and Type Method Description intContentType. compareWildcardCounts(ContentType otherContentType)Compare wildcards counts/weights of bothContentType.static ContentTypeContentType. create(ContentType contentType, String parameterKey, String parameterValue)booleanContentType. isCompatible(ContentType obj)ContentTypes are compatible iftype,subtypehave the same value. iftypeand/orsubtypeis set to "*" The setparametersare always ignored (for compare with parameters seeequals(Object)).static booleanContentType. match(String toMatch, ContentType... matchExamples)Check if a valid match for given content type formated string (toMatch) exists in given list.Method parameters in org.apache.olingo.odata2.core.commons with type arguments of type ContentType Modifier and Type Method Description booleanContentType. hasCompatible(List<ContentType> toMatchContentTypes)Check if a valid compatible match for thisContentTypeexists in given list.booleanContentType. hasMatch(List<ContentType> toMatchContentTypes)Check if a valid match for thisContentTypeexists in given list.ContentTypeContentType. match(List<ContentType> toMatchContentTypes)Find best match between thisContentTypeand theContentTypein the list.ContentTypeContentType. matchCompatible(List<ContentType> toMatchContentTypes)Find best match between thisContentTypeand theContentTypein the list ignoring all set parameters. -
Uses of ContentType in org.apache.olingo.odata2.core.rest
Methods in org.apache.olingo.odata2.core.rest that return ContentType Modifier and Type Method Description static ContentTypeRestUtil. extractRequestContentType(SubLocatorParameter param) -
Uses of ContentType in org.apache.olingo.odata2.core.servlet
Methods in org.apache.olingo.odata2.core.servlet that return ContentType Modifier and Type Method Description static ContentTypeRestUtil. extractRequestContentType(String contentType)
-