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