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:ODataNettyCreates a new ODataNettyHandler for handling OData requests in an HTTP context.- Specified by:
createNettyHandlerin classODataNetty- Parameters:
serviceMetadata- - metadata object required to handle an OData request
-
createSerializer
Description copied from class:ODataCreates a new serializer object for rendering content in the specified format. Serializers are used in Processor implementations.- Specified by:
createSerializerin 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:ODataCreates a new serializer object for rendering content in the specified format. Serializers are used in Processor implementations.- Specified by:
createSerializerin 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:ODataCreates 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:
createFixedFormatSerializerin classOData
-
createFixedFormatDeserializer
Description copied from class:ODataCreates a new deserializer object for reading content in a fixed format, e.g., for binary input. Deserializers are used in Processor implementations.- Specified by:
createFixedFormatDeserializerin classOData
-
createHandler
Description copied from class:ODataCreates a new ODataHttpHandler for handling OData requests in an HTTP context.- Specified by:
createHandlerin classOData- Parameters:
serviceMetadata- - metadata object required to handle an OData request
-
createRawHandler
Description copied from class:ODataCreates a new ODataHandler for handling OData requests.- Specified by:
createRawHandlerin classOData- Parameters:
serviceMetadata- - metadata object required to handle an OData request
-
createServiceMetadata
public ServiceMetadata createServiceMetadata(CsdlEdmProvider edmProvider, List<EdmxReference> references) Description copied from class:ODataCreates a metadata object for this service.- Specified by:
createServiceMetadatain 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:ODataCreates a metadata object for this service.- Specified by:
createServiceMetadatain 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:ODataCreates a new URI helper object for performing URI-related tasks. It can be used in Processor implementations.- Specified by:
createUriHelperin classOData
-
createDeserializer
Description copied from class:ODataCreates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializerin 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:ODataCreates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializerin classOData- Parameters:
contentType- any content type supported by Olingo (XML, JSON ...)metadata- ServiceMetada of the service- Throws:
DeserializerException
-
createPrimitiveTypeInstance
Description copied from class:ODataCreates a primitive-type instance.- Specified by:
createPrimitiveTypeInstancein classOData- Parameters:
kind- the kind of the primitive type- Returns:
- an
EdmPrimitiveTypeinstance for the type kind
-
createETagHelper
Description copied from class:ODataCreates a new ETag helper object for performing ETag-related tasks. It can be used in Processor implementations.- Specified by:
createETagHelperin classOData
-
createPreferences
Description copied from class:ODataCreates a new Preferences object out of Prefer HTTP request headers. It can be used in Processor implementations.- Specified by:
createPreferencesin classOData
-
createDebugResponseHelper
Description copied from class:ODataCreates 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:
createDebugResponseHelperin classOData- Parameters:
debugFormat- format to be used- Returns:
- a debug-response helper
-
createEdmAssistedSerializer
public EdmAssistedSerializer createEdmAssistedSerializer(ContentType contentType) throws SerializerException Description copied from class:ODataCreates a new serializer object capable of working without EDM information for rendering content in the specified format.- Specified by:
createEdmAssistedSerializerin 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:ODataCreates a new serializer object capable of working without EDM information for rendering content in the specified format.- Specified by:
createEdmAssistedSerializerin 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:ODataCreates a new serializer object capable of working without EDM information for rendering delta content in the specified format.- Specified by:
createEdmDeltaSerializerin 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:ODataCreates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializerin 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:ODataCreates a new deserializer object for reading content in the specified format. Deserializers are used in Processor implementations.- Specified by:
createDeserializerin classOData- Parameters:
contentType- any content type supported by Olingo (XML, JSON ...)metadata- ServiceMetada of the service- Throws:
DeserializerException
-