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.
Olingo Server API
Olingo Processors
Olingo Server API - Serializer
-
Uses of ContentType in org.apache.olingo.client.api
Methods in org.apache.olingo.client.api that return ContentTypeModifier and TypeMethodDescriptionConfiguration.getDefaultBatchAcceptFormat()
Gets the configured default Accept header value format for a batch request.Configuration.getDefaultFormat()
Gets the configured OData format.Configuration.getDefaultMediaFormat()
Gets the configured OData media format.Configuration.getDefaultPubFormat()
Gets the configured OData format for AtomPub exchanges.Configuration.getDefaultValueFormat()
Gets the configured OData value format.Methods in org.apache.olingo.client.api with parameters of type ContentTypeModifier and TypeMethodDescriptionODataClient.getDeserializer
(ContentType contentType) ODataClient.getSerializer
(ContentType contentType) void
Configuration.setDefaultBatchAcceptFormat
(ContentType contentType) Set the default Accept header value format for a batch request.void
Configuration.setDefaultMediaFormat
(ContentType format) Sets the default OData media format.void
Configuration.setDefaultPubFormat
(ContentType format) Sets the default OData format for AtomPub exchanges.void
Configuration.setDefaultValueFormat
(ContentType format) Sets the default OData value format. -
Uses of ContentType in org.apache.olingo.client.api.communication.request
Methods in org.apache.olingo.client.api.communication.request with parameters of type ContentTypeModifier and TypeMethodDescriptionvoid
ODataBasicRequest.setFormat
(ContentType contentType) Override configured request Content-Type. -
Uses of ContentType in org.apache.olingo.client.api.communication.request.streamed
Methods in org.apache.olingo.client.api.communication.request.streamed that return ContentTypeModifier and TypeMethodDescriptionODataStreamedEntityRequest.getFormat()
Returns resource representation format.Methods in org.apache.olingo.client.api.communication.request.streamed with parameters of type ContentTypeModifier and TypeMethodDescriptionvoid
ODataStreamedEntityRequest.setFormat
(ContentType contentType) Override configured request format. -
Uses of ContentType in org.apache.olingo.client.api.domain
Constructors in org.apache.olingo.client.api.domain with parameters of type ContentTypeModifierConstructorDescriptionClientEntitySetIterator
(ODataClient odataClient, InputStream stream, ContentType contentType) Constructor. -
Uses of ContentType in org.apache.olingo.client.api.serialization
Methods in org.apache.olingo.client.api.serialization with parameters of type ContentTypeModifier and TypeMethodDescriptionODataReader.readEntity
(InputStream input, ContentType contentType) Parses a stream taking care to de-serializes the first OData entity found.ODataReader.readEntitySet
(InputStream input, ContentType contentType) De-Serializes a stream into an OData entity set.ODataReader.readError
(InputStream inputStream, ContentType contentType) Parses a stream into an OData error.ODataReader.readProperty
(InputStream input, ContentType contentType) Parses a stream taking care to de-serialize the first OData entity property found.ODataReader.readServiceDocument
(InputStream input, ContentType contentType) Parses an OData service document.ODataWriter.writeEntities
(Collection<ClientEntity> entities, ContentType contentType) Writes a collection of OData entities.ODataWriter.writeEntity
(ClientEntity entity, ContentType format) Serializes a single OData entity.ODataWriter.writeLink
(ClientLink link, ContentType format) Writes an OData link.ODataWriter.writeProperty
(ClientProperty property, ContentType format) Writes a single OData entity property.ODataWriter.writeReference
(ResWrap<URI> reference, ContentType format) Writes a entity reference -
Uses of ContentType in org.apache.olingo.commons.api.format
Fields in org.apache.olingo.commons.api.format declared as ContentTypeModifier and TypeFieldDescriptionstatic final ContentType
ContentType.APPLICATION_ATOM_SVC
static final ContentType
ContentType.APPLICATION_ATOM_XML
static final ContentType
ContentType.APPLICATION_ATOM_XML_ENTRY
static final ContentType
ContentType.APPLICATION_ATOM_XML_ENTRY_UTF8
static final ContentType
ContentType.APPLICATION_ATOM_XML_FEED
static final ContentType
ContentType.APPLICATION_ATOM_XML_FEED_UTF8
static final ContentType
ContentType.APPLICATION_FORM_URLENCODED
static final ContentType
ContentType.APPLICATION_HTTP
static final ContentType
ContentType.APPLICATION_JSON
static final ContentType
ContentType.APPLICATION_OCTET_STREAM
static final ContentType
ContentType.APPLICATION_SVG_XML
static final ContentType
ContentType.APPLICATION_XHTML_XML
static final ContentType
ContentType.APPLICATION_XML
static final ContentType
ContentType.JSON
static final ContentType
ContentType.JSON_FULL_METADATA
static final ContentType
ContentType.JSON_NO_METADATA
static final ContentType
ContentType.MULTIPART_FORM_DATA
static final ContentType
ContentType.MULTIPART_MIXED
static final ContentType
ContentType.TEXT_HTML
static final ContentType
ContentType.TEXT_PLAIN
static final ContentType
ContentType.TEXT_XML
Methods in org.apache.olingo.commons.api.format that return ContentTypeModifier and TypeMethodDescriptionstatic ContentType
Creates aContentType
based on given input string (format
).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.fromAcceptHeader
(String accept) Uses the first MIME type from the accept header to determine the content type.static ContentType
Parses the given input string (format
) and returns createdContentType
if input was valid or returnNULL
if input was not parseable.Methods in org.apache.olingo.commons.api.format with parameters of type ContentTypeModifier and TypeMethodDescriptionstatic 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 ofAcceptType
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. -
Uses of ContentType in org.apache.olingo.netty.server.core
Methods in org.apache.olingo.netty.server.core with parameters of type ContentTypeModifier and TypeMethodDescriptionODataNettyImpl.createDeserializer
(ContentType contentType) ODataNettyImpl.createDeserializer
(ContentType contentType, List<String> versions) ODataNettyImpl.createDeserializer
(ContentType contentType, ServiceMetadata metadata) ODataNettyImpl.createDeserializer
(ContentType contentType, ServiceMetadata metadata, List<String> versions) ODataNettyImpl.createEdmAssistedSerializer
(ContentType contentType) ODataNettyImpl.createEdmAssistedSerializer
(ContentType contentType, List<String> versions) ODataNettyImpl.createEdmDeltaSerializer
(ContentType contentType, List<String> versions) ODataNettyImpl.createSerializer
(ContentType contentType) ODataNettyImpl.createSerializer
(ContentType contentType, List<String> versions) -
Uses of ContentType in org.apache.olingo.server.api
Methods in org.apache.olingo.server.api with parameters of type ContentTypeModifier and TypeMethodDescriptionabstract ODataDeserializer
OData.createDeserializer
(ContentType contentType) Creates a new deserializer object for reading content in the specified format.abstract ODataDeserializer
OData.createDeserializer
(ContentType contentType, List<String> versions) Creates a new deserializer object for reading content in the specified format.abstract ODataDeserializer
OData.createDeserializer
(ContentType contentType, ServiceMetadata metadata) Creates a new deserializer object for reading content in the specified format.abstract ODataDeserializer
OData.createDeserializer
(ContentType contentType, ServiceMetadata metadata, List<String> versions) Creates a new deserializer object for reading content in the specified format.abstract EdmAssistedSerializer
OData.createEdmAssistedSerializer
(ContentType contentType) Creates a new serializer object capable of working without EDM information for rendering content in the specified format.abstract EdmAssistedSerializer
OData.createEdmAssistedSerializer
(ContentType contentType, List<String> versions) Creates a new serializer object capable of working without EDM information for rendering content in the specified format.abstract EdmDeltaSerializer
OData.createEdmDeltaSerializer
(ContentType contentType, List<String> versions) Creates a new serializer object capable of working without EDM information for rendering delta content in the specified format.abstract ODataSerializer
OData.createSerializer
(ContentType contentType) Creates a new serializer object for rendering content in the specified format.abstract ODataSerializer
OData.createSerializer
(ContentType contentType, List<String> versions) Creates a new serializer object for rendering content in the specified format. -
Uses of ContentType in org.apache.olingo.server.api.processor
Methods in org.apache.olingo.server.api.processor with parameters of type ContentTypeModifier and TypeMethodDescriptionvoid
EntityProcessor.createEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Creates an entity with send data in the persistence and puts content, status, and Location into the response.void
MediaEntityProcessor.createMediaEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Creates an entity with sent media data in the persistence and puts content, status and Location into the response.void
ReferenceProcessor.createReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Creates entity reference in the persistence and puts content, status, and Location into the response.void
ActionComplexProcessor.processActionComplex
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a complex type.void
ActionComplexCollectionProcessor.processActionComplexCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a complex-type collection.void
ActionEntityProcessor.processActionEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type an entity.void
ActionEntityCollectionProcessor.processActionEntityCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a collection of entities.void
ActionPrimitiveProcessor.processActionPrimitive
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a primitive-type.void
ActionPrimitiveCollectionProcessor.processActionPrimitiveCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a primitive-type collection.void
ActionVoidProcessor.processActionVoid
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Process an action which has no return type.void
DefaultProcessor.processError
(ODataRequest request, ODataResponse response, ODataServerError serverError, ContentType requestedContentType) void
ErrorProcessor.processError
(ODataRequest request, ODataResponse response, ODataServerError serverError, ContentType responseFormat) Processes an error/exception.void
ComplexProcessor.readComplex
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads complex-type instance.void
ComplexCollectionProcessor.readComplexCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads complex-type collection.void
EntityProcessor.readEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity data from persistence and puts serialized content and status into the response.void
EntityCollectionProcessor.readEntityCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entities data from persistence and puts serialized content and status into the response.void
MediaEntityProcessor.readMediaEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity media data from persistence and puts content and status into the response.void
DefaultProcessor.readMetadata
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) void
MetadataProcessor.readMetadata
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads data from persistence and puts serialized content and status into the response.void
PrimitiveProcessor.readPrimitive
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads primitive-type instance.void
PrimitiveCollectionProcessor.readPrimitiveCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads primitive-type collection.void
PrimitiveValueProcessor.readPrimitiveValue
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads raw value of a primitive-type instance, e.g., of a primitive property of an entity.void
ReferenceProcessor.readReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity reference from persistence and put it as serialized content and status into the response.void
ReferenceCollectionProcessor.readReferenceCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity references from persistence and put them as serialized content and with according status into the response.void
DefaultProcessor.readServiceDocument
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) void
ServiceDocumentProcessor.readServiceDocument
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads service-document information from persistence and puts serialized content and status into the response.void
ComplexProcessor.updateComplex
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update complex-type instance with send data in the persistence and puts content, status, and Location into the response.void
ComplexCollectionProcessor.updateComplexCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update (replace) complex-type collection with send data in the persistence and puts content, status, and Location into the response.void
EntityProcessor.updateEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update entity data with send data in the persistence and puts content, status, and Location into the response.void
MediaEntityProcessor.updateMediaEntity
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Updates entity media data in the persistence and puts content and status into the response.void
PrimitiveProcessor.updatePrimitive
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update primitive-type instance with send data in the persistence and puts content, status, and Location into the response.void
PrimitiveCollectionProcessor.updatePrimitiveCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update (replace) primitive-type collection with send data in the persistence and puts content, status, and Location into the response.void
PrimitiveValueProcessor.updatePrimitiveValue
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Update primitive-type instance with sent raw data in the persistence and puts content, status, and Location into the response.void
ReferenceProcessor.updateReference
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Update entity reference in the persistence and puts content, status, and Location into the response. -
Uses of ContentType in org.apache.olingo.server.api.serializer
Methods in org.apache.olingo.server.api.serializer that return types with arguments of type ContentTypeModifier and TypeMethodDescriptionCustomContentTypeSupport.modifySupportedContentTypes
(List<ContentType> defaultContentTypes, RepresentationType type) Returns a list of supported content types.Method parameters in org.apache.olingo.server.api.serializer with type arguments of type ContentTypeModifier and TypeMethodDescriptionCustomContentTypeSupport.modifySupportedContentTypes
(List<ContentType> defaultContentTypes, RepresentationType type) Returns a list of supported content types.