public abstract class OData extends Object
Constructor and Description |
---|
OData() |
Modifier and Type | Method and Description |
---|---|
abstract DebugResponseHelper |
createDebugResponseHelper(String debugFormat)
Creates a DebugResponseHelper for the given debugFormat.
|
abstract ODataDeserializer |
createDeserializer(ContentType contentType)
Creates a new deserializer object for reading content in the specified format.
|
abstract ODataDeserializer |
createDeserializer(ContentType contentType,
ServiceMetadata metadata)
Creates a new deserializer object for reading content in the specified format.
|
abstract EdmAssistedSerializer |
createEdmAssistedSerializer(ContentType contentType)
Creates a new serializer object capable of working without EDM information
for rendering content in the specified format.
|
abstract EdmDeltaSerializer |
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 ETagHelper |
createETagHelper()
Creates a new ETag helper object for performing ETag-related tasks.
|
abstract FixedFormatDeserializer |
createFixedFormatDeserializer()
Creates a new deserializer object for reading content in a fixed format, e.g., for binary input.
|
abstract FixedFormatSerializer |
createFixedFormatSerializer()
Creates a new serializer object for rendering content in a fixed format, e.g., for binary output or multipart/mixed
outpu.
|
abstract ODataHttpHandler |
createHandler(ServiceMetadata serviceMetadata)
Creates a new ODataHttpHandler for handling OData requests in an HTTP context.
|
abstract Preferences |
createPreferences(Collection<String> preferHeaders)
Creates a new Preferences object out of Prefer HTTP request headers.
|
abstract EdmPrimitiveType |
createPrimitiveTypeInstance(EdmPrimitiveTypeKind kind)
Creates a primitive-type instance.
|
abstract ODataHandler |
createRawHandler(ServiceMetadata serviceMetadata)
Creates a new ODataHandler for handling OData requests.
|
abstract ODataSerializer |
createSerializer(ContentType contentType)
Creates a new serializer object for rendering content in the specified format.
|
abstract ODataSerializer |
createSerializer(ContentType contentType,
List<String> versions)
Creates a new serializer object for rendering content in the specified format.
|
abstract ServiceMetadata |
createServiceMetadata(CsdlEdmProvider edmProvider,
List<EdmxReference> references)
Creates a metadata object for this service.
|
abstract ServiceMetadata |
createServiceMetadata(CsdlEdmProvider edmProvider,
List<EdmxReference> references,
ServiceMetadataETagSupport serviceMetadataETagSupport)
Creates a metadata object for this service.
|
abstract UriHelper |
createUriHelper()
Creates a new URI helper object for performing URI-related tasks.
|
static OData |
newInstance()
Use this method to create a new OData instance.
|
public static OData newInstance()
public abstract ODataSerializer createSerializer(ContentType contentType) throws SerializerException
contentType
- any format supported by Olingo (XML, JSON ...)SerializerException
public abstract ODataSerializer createSerializer(ContentType contentType, List<String> versions) throws SerializerException
contentType
- any format supported by Olingo (XML, JSON ...)versions
- any v4 version supported by Olingo (4.0, 4.01 ...)SerializerException
public abstract FixedFormatSerializer createFixedFormatSerializer()
public abstract FixedFormatDeserializer createFixedFormatDeserializer()
public abstract ODataHttpHandler createHandler(ServiceMetadata serviceMetadata)
serviceMetadata
- - metadata object required to handle an OData requestpublic abstract ODataHandler createRawHandler(ServiceMetadata serviceMetadata)
serviceMetadata
- - metadata object required to handle an OData requestpublic abstract ServiceMetadata createServiceMetadata(CsdlEdmProvider edmProvider, List<EdmxReference> references)
edmProvider
- a custom or default implementation for creating metadatareferences
- list of edmx referencespublic abstract ServiceMetadata createServiceMetadata(CsdlEdmProvider edmProvider, List<EdmxReference> references, ServiceMetadataETagSupport serviceMetadataETagSupport)
edmProvider
- a custom or default implementation for creating metadatareferences
- list of edmx referencesserviceMetadataETagSupport
- public abstract UriHelper createUriHelper()
public abstract ODataDeserializer createDeserializer(ContentType contentType) throws DeserializerException
contentType
- any content type supported by Olingo (XML, JSON ...)DeserializerException
public abstract ODataDeserializer createDeserializer(ContentType contentType, ServiceMetadata metadata) throws DeserializerException
contentType
- any content type supported by Olingo (XML, JSON ...)metadata
- ServiceMetada of the serviceDeserializerException
public abstract EdmPrimitiveType createPrimitiveTypeInstance(EdmPrimitiveTypeKind kind)
kind
- the kind of the primitive typeEdmPrimitiveType
instance for the type kindpublic abstract ETagHelper createETagHelper()
public abstract Preferences createPreferences(Collection<String> preferHeaders)
public abstract DebugResponseHelper createDebugResponseHelper(String debugFormat)
debugFormat
- format to be usedpublic abstract EdmAssistedSerializer createEdmAssistedSerializer(ContentType contentType) throws SerializerException
contentType
- a content type supported by OlingoSerializerException
public abstract EdmDeltaSerializer createEdmDeltaSerializer(ContentType contentType, List<String> versions) throws SerializerException
contentType
- a content type supported by Olingoversion
- versions supported by OlingoSerializerException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.