Class ODataNettyImpl
java.lang.Object
org.apache.olingo.server.api.OData
org.apache.olingo.netty.server.api.ODataNetty
org.apache.olingo.netty.server.core.ODataNettyImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDebugResponseHelper
(String debugFormat) Creates a DebugResponseHelper for the given debugFormat.createDeserializer
(ContentType contentType) Creates a new deserializer object for reading content in the specified format.createDeserializer
(ContentType contentType, List<String> versions) Creates a new deserializer object for reading content in the specified format.createDeserializer
(ContentType contentType, ServiceMetadata metadata) Creates a new deserializer object for reading content in the specified format.createDeserializer
(ContentType contentType, ServiceMetadata metadata, List<String> versions) Creates a new deserializer object for reading content in the specified format.createEdmAssistedSerializer
(ContentType contentType) Creates a new serializer object capable of working without EDM information for rendering content in the specified format.createEdmAssistedSerializer
(ContentType contentType, List<String> versions) Creates a new serializer object capable of working without EDM information for rendering content in the specified format.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.Creates a new ETag helper object for performing ETag-related tasks.Creates a new deserializer object for reading content in a fixed format, e.g., for binary input.Creates a new serializer object for rendering content in a fixed format, e.g., for binary output or multipart/mixed outpu.createHandler
(ServiceMetadata serviceMetadata) Creates a new ODataHttpHandler for handling OData requests in an HTTP context.createNettyHandler
(ServiceMetadata serviceMetadata) Creates a new ODataNettyHandler for handling OData requests in an HTTP context.createPreferences
(Collection<String> preferHeaders) Creates a new Preferences object out of Prefer HTTP request headers.Creates a primitive-type instance.createRawHandler
(ServiceMetadata serviceMetadata) Creates a new ODataHandler for handling OData requests.createSerializer
(ContentType contentType) Creates a new serializer object for rendering content in the specified format.createSerializer
(ContentType contentType, List<String> versions) Creates a new serializer object for rendering content in the specified format.createServiceMetadata
(CsdlEdmProvider edmProvider, List<EdmxReference> references) Creates a metadata object for this service.createServiceMetadata
(CsdlEdmProvider edmProvider, List<EdmxReference> references, ServiceMetadataETagSupport serviceMetadataETagSupport) Creates a metadata object for this service.Creates a new URI helper object for performing URI-related tasks.Methods inherited from class org.apache.olingo.netty.server.api.ODataNetty
newInstance
-
Constructor Details
-
ODataNettyImpl
public ODataNettyImpl()
-
-
Method Details
-
createNettyHandler
Description copied from class:ODataNetty
Creates a new ODataNettyHandler for handling OData requests in an HTTP context.- Specified by:
createNettyHandler
in classODataNetty
- Parameters:
serviceMetadata
- - metadata object required to handle an OData request
-
createSerializer
Description copied from class:OData
Creates a new serializer object for rendering content in the specified format. Serializers are used in Processor implementations.- Specified by:
createSerializer
in classOData
- Parameters:
contentType
- any format supported by Olingo (XML, JSON ...)- Throws:
SerializerException
-
createSerializer
public ODataSerializer createSerializer(ContentType contentType, List<String> versions) throws SerializerException Description copied from class:OData
Creates a new serializer object for rendering content in the specified format. Serializers are used in Processor implementations.- Specified by:
createSerializer
in classOData
- Parameters:
contentType
- any format supported by Olingo (XML, JSON ...)versions
- any v4 version supported by Olingo (4.0, 4.01 ...)- Throws:
SerializerException
-
createFixedFormatSerializer
Description copied from class:OData
Creates a new serializer object for rendering content in a fixed format, e.g., for binary output or multipart/mixed outpu. Serializers are used in Processor implementations.- Specified by:
createFixedFormatSerializer
in classOData
-
createFixedFormatDeserializer
Description copied from class:OData
Creates a new deserializer object for reading content in a fixed format, e.g., for binary input. Deserializers are used in Processor implementations.- Specified by:
createFixedFormatDeserializer
in classOData
-
createHandler
Description copied from class:OData
Creates a new ODataHttpHandler for handling OData requests in an HTTP context.- Specified by:
createHandler
in classOData
- Parameters:
serviceMetadata
- - metadata object required to handle an OData request
-
createRawHandler
Description copied from class:OData
Creates a new ODataHandler for handling OData requests.- Specified by:
createRawHandler
in classOData
- Parameters:
serviceMetadata
- - metadata object required to handle an OData request
-
createServiceMetadata
public ServiceMetadata createServiceMetadata(CsdlEdmProvider edmProvider, List<EdmxReference> references) Description copied from class:OData
Creates a metadata object for this service.- Specified by:
createServiceMetadata
in classOData
- Parameters:
edmProvider
- a custom or default implementation for creating metadatareferences
- list of edmx references- Returns:
- a service metadata implementation
-
createServiceMetadata
public ServiceMetadata createServiceMetadata(CsdlEdmProvider edmProvider, List<EdmxReference> references, ServiceMetadataETagSupport serviceMetadataETagSupport) Description copied from class:OData
Creates a metadata object for this service.- Specified by:
createServiceMetadata
in classOData
- Parameters:
edmProvider
- a custom or default implementation for creating metadatareferences
- list of edmx references- Returns:
- a service metadata implementation
-
createUriHelper
Description copied from class:OData
Creates a new URI helper object for performing URI-related tasks. It can be used in Processor implementations.- Specified by:
createUriHelper
in classOData
-
createDeserializer
Description copied from class:OData
Creates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializer
in classOData
- Parameters:
contentType
- any content type supported by Olingo (XML, JSON ...)- Throws:
DeserializerException
-
createDeserializer
public ODataDeserializer createDeserializer(ContentType contentType, ServiceMetadata metadata) throws DeserializerException Description copied from class:OData
Creates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializer
in classOData
- Parameters:
contentType
- any content type supported by Olingo (XML, JSON ...)metadata
- ServiceMetada of the service- Throws:
DeserializerException
-
createPrimitiveTypeInstance
Description copied from class:OData
Creates a primitive-type instance.- Specified by:
createPrimitiveTypeInstance
in classOData
- Parameters:
kind
- the kind of the primitive type- Returns:
- an
EdmPrimitiveType
instance for the type kind
-
createETagHelper
Description copied from class:OData
Creates a new ETag helper object for performing ETag-related tasks. It can be used in Processor implementations.- Specified by:
createETagHelper
in classOData
-
createPreferences
Description copied from class:OData
Creates a new Preferences object out of Prefer HTTP request headers. It can be used in Processor implementations.- Specified by:
createPreferences
in classOData
-
createDebugResponseHelper
Description copied from class:OData
Creates a DebugResponseHelper for the given debugFormat. If the format is not supported no exception is thrown. Instead we give back the implementation for the JSON format.- Specified by:
createDebugResponseHelper
in classOData
- Parameters:
debugFormat
- format to be used- Returns:
- a debug-response helper
-
createEdmAssistedSerializer
public EdmAssistedSerializer createEdmAssistedSerializer(ContentType contentType) throws SerializerException Description copied from class:OData
Creates a new serializer object capable of working without EDM information for rendering content in the specified format.- Specified by:
createEdmAssistedSerializer
in classOData
- Parameters:
contentType
- a content type supported by Olingo- Throws:
SerializerException
-
createEdmAssistedSerializer
public EdmAssistedSerializer createEdmAssistedSerializer(ContentType contentType, List<String> versions) throws SerializerException Description copied from class:OData
Creates a new serializer object capable of working without EDM information for rendering content in the specified format.- Specified by:
createEdmAssistedSerializer
in classOData
- Parameters:
contentType
- a content type supported by Olingoversions
- Odata Version v4 or v4.01- Throws:
SerializerException
-
createEdmDeltaSerializer
public EdmDeltaSerializer createEdmDeltaSerializer(ContentType contentType, List<String> versions) throws SerializerException Description copied from class:OData
Creates a new serializer object capable of working without EDM information for rendering delta content in the specified format.- Specified by:
createEdmDeltaSerializer
in classOData
- Parameters:
contentType
- a content type supported by Olingo- Throws:
SerializerException
-
createDeserializer
public ODataDeserializer createDeserializer(ContentType contentType, List<String> versions) throws DeserializerException Description copied from class:OData
Creates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializer
in classOData
- Parameters:
contentType
- any content type supported by Olingo (XML, JSON ...)- Throws:
DeserializerException
-
createDeserializer
public ODataDeserializer createDeserializer(ContentType contentType, ServiceMetadata metadata, List<String> versions) throws DeserializerException Description copied from class:OData
Creates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializer
in classOData
- Parameters:
contentType
- any content type supported by Olingo (XML, JSON ...)metadata
- ServiceMetada of the service- Throws:
DeserializerException
-