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) voidConfiguration.setDefaultBatchAcceptFormat(ContentType contentType) Set the default Accept header value format for a batch request.voidConfiguration.setDefaultMediaFormat(ContentType format) Sets the default OData media format.voidConfiguration.setDefaultPubFormat(ContentType format) Sets the default OData format for AtomPub exchanges.voidConfiguration.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 TypeMethodDescriptionvoidODataBasicRequest.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 TypeMethodDescriptionvoidODataStreamedEntityRequest.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 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. -
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 ODataDeserializerOData.createDeserializer(ContentType contentType) Creates a new deserializer object for reading content in the specified format.abstract ODataDeserializerOData.createDeserializer(ContentType contentType, List<String> versions) Creates a new deserializer object for reading content in the specified format.abstract ODataDeserializerOData.createDeserializer(ContentType contentType, ServiceMetadata metadata) Creates a new deserializer object for reading content in the specified format.abstract ODataDeserializerOData.createDeserializer(ContentType contentType, ServiceMetadata metadata, List<String> versions) Creates a new deserializer object for reading content in the specified format.abstract EdmAssistedSerializerOData.createEdmAssistedSerializer(ContentType contentType) Creates a new serializer object capable of working without EDM information for rendering content in the specified format.abstract EdmAssistedSerializerOData.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 EdmDeltaSerializerOData.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 ODataSerializerOData.createSerializer(ContentType contentType) Creates a new serializer object for rendering content in the specified format.abstract ODataSerializerOData.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 TypeMethodDescriptionvoidEntityProcessor.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.voidMediaEntityProcessor.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.voidReferenceProcessor.createReference(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Creates entity reference in the persistence and puts content, status, and Location into the response.voidActionComplexProcessor.processActionComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a complex type.voidActionComplexCollectionProcessor.processActionComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a complex-type collection.voidActionEntityProcessor.processActionEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type an entity.voidActionEntityCollectionProcessor.processActionEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a collection of entities.voidActionPrimitiveProcessor.processActionPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a primitive-type.voidActionPrimitiveCollectionProcessor.processActionPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) Process an action which has as return type a primitive-type collection.voidActionVoidProcessor.processActionVoid(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat) Process an action which has no return type.voidDefaultProcessor.processError(ODataRequest request, ODataResponse response, ODataServerError serverError, ContentType requestedContentType) voidErrorProcessor.processError(ODataRequest request, ODataResponse response, ODataServerError serverError, ContentType responseFormat) Processes an error/exception.voidComplexProcessor.readComplex(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads complex-type instance.voidComplexCollectionProcessor.readComplexCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads complex-type collection.voidEntityProcessor.readEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity data from persistence and puts serialized content and status into the response.voidEntityCollectionProcessor.readEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entities data from persistence and puts serialized content and status into the response.voidMediaEntityProcessor.readMediaEntity(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads entity media data from persistence and puts content and status into the response.voidDefaultProcessor.readMetadata(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) voidMetadataProcessor.readMetadata(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads data from persistence and puts serialized content and status into the response.voidPrimitiveProcessor.readPrimitive(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads primitive-type instance.voidPrimitiveCollectionProcessor.readPrimitiveCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads primitive-type collection.voidPrimitiveValueProcessor.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.voidReferenceProcessor.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.voidReferenceCollectionProcessor.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.voidDefaultProcessor.readServiceDocument(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestedContentType) voidServiceDocumentProcessor.readServiceDocument(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType responseFormat) Reads service-document information from persistence and puts serialized content and status into the response.voidComplexProcessor.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.voidComplexCollectionProcessor.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.voidEntityProcessor.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.voidMediaEntityProcessor.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.voidPrimitiveProcessor.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.voidPrimitiveCollectionProcessor.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.voidPrimitiveValueProcessor.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.voidReferenceProcessor.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.