## Uses of Class
org.apache.olingo.commons.api.format.ContentType

- Packages that use ContentType
  Package | Description
  --- | ---
  org.apache.olingo.client.api |
  org.apache.olingo.client.api.communication.request |
  org.apache.olingo.client.api.communication.request.streamed |
  org.apache.olingo.client.api.domain |
  org.apache.olingo.client.api.serialization |
  org.apache.olingo.commons.api.format | Contains all the format-related objects used for the handling of OData responses and OData requests.
  org.apache.olingo.netty.server.core |
  org.apache.olingo.server.api | Olingo Server API The OData Library is a protocol implementation of the OData V4.0 standard.
  org.apache.olingo.server.api.processor | Olingo Processors Processors are used to handle OData requests and send back the OData reponse.
  org.apache.olingo.server.api.serializer | Olingo Server API - Serializer The serializer package is used to condense all about the Olingo serialization.

- - ### Uses of ContentType in org.apache.olingo.client.api

    Methods in org.apache.olingo.client.api that return ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | Configuration.`getDefaultBatchAcceptFormat()` Gets the configured default `Accept` header value format for a batch request.
    `ContentType` | Configuration.`getDefaultFormat()` Gets the configured OData format.
    `ContentType` | Configuration.`getDefaultMediaFormat()` Gets the configured OData media format.
    `ContentType` | Configuration.`getDefaultPubFormat()` Gets the configured OData format for AtomPub exchanges.
    `ContentType` | Configuration.`getDefaultValueFormat()` Gets the configured OData value format.

    Methods in org.apache.olingo.client.api with parameters of type ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ClientODataDeserializer` | ODataClient.`getDeserializer(ContentType contentType)`
    `ODataSerializer` | 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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `void` | 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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ContentType` | ODataStreamedEntityRequest.`getFormat()` Returns resource representation format.

    Methods in org.apache.olingo.client.api.communication.request.streamed with parameters of type ContentType
    Modifier and Type | Method and Description
    --- | ---
    `void` | 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 ContentType
    Constructor and Description
    `ClientEntitySetIterator(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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ClientEntity` | ODataReader.`readEntity(InputStream input, ContentType contentType)` Parses a stream taking care to de-serializes the first OData entity found.
    `ClientEntitySet` | ODataReader.`readEntitySet(InputStream input, ContentType contentType)` De-Serializes a stream into an OData entity set.
    `ODataError` | ODataReader.`readError(InputStream inputStream, ContentType contentType)` Parses a stream into an OData error.
    `ClientProperty` | ODataReader.`readProperty(InputStream input, ContentType contentType)` Parses a stream taking care to de-serialize the first OData entity property found.
    `ClientServiceDocument` | ODataReader.`readServiceDocument(InputStream input, ContentType contentType)` Parses an OData service document.
    `InputStream` | ODataWriter.`writeEntities(Collection<ClientEntity> entities, ContentType contentType)` Writes a collection of OData entities.
    `InputStream` | ODataWriter.`writeEntity(ClientEntity entity, ContentType format)` Serializes a single OData entity.
    `InputStream` | ODataWriter.`writeLink(ClientLink link, ContentType format)` Writes an OData link.
    `InputStream` | ODataWriter.`writeProperty(ClientProperty property, ContentType format)` Writes a single OData entity property.
    `InputStream` | 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 ContentType
    Modifier and Type | Field and Description
    --- | ---
    `static ContentType` | ContentType.`APPLICATION_ATOM_SVC`
    `static ContentType` | ContentType.`APPLICATION_ATOM_XML`
    `static ContentType` | ContentType.`APPLICATION_ATOM_XML_ENTRY`
    `static ContentType` | ContentType.`APPLICATION_ATOM_XML_ENTRY_UTF8`
    `static ContentType` | ContentType.`APPLICATION_ATOM_XML_FEED`
    `static ContentType` | ContentType.`APPLICATION_ATOM_XML_FEED_UTF8`
    `static ContentType` | ContentType.`APPLICATION_FORM_URLENCODED`
    `static ContentType` | ContentType.`APPLICATION_HTTP`
    `static ContentType` | ContentType.`APPLICATION_JSON`
    `static ContentType` | ContentType.`APPLICATION_OCTET_STREAM`
    `static ContentType` | ContentType.`APPLICATION_SVG_XML`
    `static ContentType` | ContentType.`APPLICATION_XHTML_XML`
    `static ContentType` | ContentType.`APPLICATION_XML`
    `static ContentType` | ContentType.`JSON`
    `static ContentType` | ContentType.`JSON_FULL_METADATA`
    `static ContentType` | ContentType.`JSON_NO_METADATA`
    `static ContentType` | ContentType.`MULTIPART_FORM_DATA`
    `static ContentType` | ContentType.`MULTIPART_MIXED`
    `static ContentType` | ContentType.`TEXT_HTML`
    `static ContentType` | ContentType.`TEXT_PLAIN`
    `static ContentType` | ContentType.`TEXT_XML`

    Methods in org.apache.olingo.commons.api.format that return ContentType
    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.

    Methods in org.apache.olingo.commons.api.format with parameters of type ContentType
    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)` `ContentType`s are compatible if `type` and `subtype` have the same value.
    `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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `ODataDeserializer` | ODataNettyImpl.`createDeserializer(ContentType contentType)`
    `ODataDeserializer` | ODataNettyImpl.`createDeserializer(ContentType contentType, List<String> versions)`
    `ODataDeserializer` | ODataNettyImpl.`createDeserializer(ContentType contentType, ServiceMetadata metadata)`
    `ODataDeserializer` | ODataNettyImpl.`createDeserializer(ContentType contentType, ServiceMetadata metadata, List<String> versions)`
    `EdmAssistedSerializer` | ODataNettyImpl.`createEdmAssistedSerializer(ContentType contentType)`
    `EdmAssistedSerializer` | ODataNettyImpl.`createEdmAssistedSerializer(ContentType contentType, List<String> versions)`
    `EdmDeltaSerializer` | ODataNettyImpl.`createEdmDeltaSerializer(ContentType contentType, List<String> versions)`
    `ODataSerializer` | ODataNettyImpl.`createSerializer(ContentType contentType)`
    `ODataSerializer` | 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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `abstract 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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `void` | 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` | 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` | DefaultProcessor.`readServiceDocument(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType)`
    `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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `List<ContentType>` | CustomContentTypeSupport.`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 ContentType
    Modifier and Type | Method and Description
    --- | ---
    `List<ContentType>` | CustomContentTypeSupport.`modifySupportedContentTypes(List<ContentType> defaultContentTypes, RepresentationType type)` Returns a list of supported content types.

Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.