Uses of Class
org.apache.olingo.commons.api.format.ContentType
Packages that use ContentType
Package
Description
Contains all the format-related objects used for the handling of
OData responses and OData requests.
-
Uses of ContentType in org.apache.olingo.commons.api.format
Fields in org.apache.olingo.commons.api.format declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentTypeContentType.APPLICATION_ATOM_SVCstatic final ContentTypeContentType.APPLICATION_ATOM_XMLstatic final ContentTypeContentType.APPLICATION_ATOM_XML_ENTRYstatic final ContentTypeContentType.APPLICATION_ATOM_XML_ENTRY_UTF8static final ContentTypeContentType.APPLICATION_ATOM_XML_FEEDstatic final ContentTypeContentType.APPLICATION_ATOM_XML_FEED_UTF8static final ContentTypeContentType.APPLICATION_FORM_URLENCODEDstatic final ContentTypeContentType.APPLICATION_HTTPstatic final ContentTypeContentType.APPLICATION_JSONstatic final ContentTypeContentType.APPLICATION_OCTET_STREAMstatic final ContentTypeContentType.APPLICATION_SVG_XMLstatic final ContentTypeContentType.APPLICATION_XHTML_XMLstatic final ContentTypeContentType.APPLICATION_XMLstatic final ContentTypeContentType.JSONstatic final ContentTypeContentType.JSON_FULL_METADATAstatic final ContentTypeContentType.JSON_NO_METADATAstatic final ContentTypeContentType.MULTIPART_FORM_DATAstatic final ContentTypeContentType.MULTIPART_MIXEDstatic final ContentTypeContentType.TEXT_HTMLstatic final ContentTypeContentType.TEXT_PLAINstatic final ContentTypeContentType.TEXT_XMLMethods in org.apache.olingo.commons.api.format that return ContentTypeModifier and TypeMethodDescriptionstatic ContentTypeCreates aContentTypebased on given input string (format).static ContentTypeContentType.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 ContentTypeContentType.fromAcceptHeader(String accept) Uses the first MIME type from the accept header to determine the content type.static ContentTypeParses the given input string (format) and returns createdContentTypeif input was valid or returnNULLif input was not parseable.Methods in org.apache.olingo.commons.api.format with parameters of type ContentTypeModifier and TypeMethodDescriptionstatic ContentTypeContentType.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 ofAcceptTypeobjects based on given content type.booleanContentType.isCompatible(ContentType other) booleanAcceptType.matches(ContentType contentType) Determines whether this accept type matches a given content type.