public interface ODataSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET
The default character set is UTF-8.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
complex(EdmComplexType type,
Property property,
ComplexSerializerOptions options)
Writes complex-type instance data into an InputStream.
|
InputStream |
complexCollection(EdmComplexType type,
Property property,
ComplexSerializerOptions options)
Writes data of a collection of complex-type instances into an InputStream.
|
InputStream |
entity(EdmEntityType entityType,
Entity entity,
EntitySerializerOptions options)
Writes entity data into an InputStream.
|
InputStream |
entityCollection(EdmEntityType entityType,
EntitySet entitySet,
EntityCollectionSerializerOptions options)
Writes entity-collection data into an InputStream.
|
InputStream |
error(ODataServerError error)
Writes an ODataError into an InputStream.
|
InputStream |
metadataDocument(ServiceMetadata serviceMetadata)
Writes the metadata document into an InputStream.
|
InputStream |
primitive(EdmPrimitiveType type,
Property property,
PrimitiveSerializerOptions options)
Writes primitive-type instance data into an InputStream.
|
InputStream |
primitiveCollection(EdmPrimitiveType type,
Property property,
PrimitiveSerializerOptions options)
Writes data of a collection of primitive-type instances into an InputStream.
|
InputStream |
serviceDocument(Edm edm,
String serviceRoot)
Writes the service document into an InputStream.
|
static final String DEFAULT_CHARSET
InputStream serviceDocument(Edm edm, String serviceRoot) throws SerializerException
edm - the Entity Data ModelserviceRoot - the service-root URI of this OData serviceSerializerExceptionInputStream metadataDocument(ServiceMetadata serviceMetadata) throws SerializerException
serviceMetadata - the metadata information for the serviceSerializerExceptionInputStream error(ODataServerError error) throws SerializerException
error - the main errorSerializerExceptionInputStream entityCollection(EdmEntityType entityType, EntitySet entitySet, EntityCollectionSerializerOptions options) throws SerializerException
entityType - the EdmEntityTypeentitySet - the data of the entity setoptions - options for the serializerSerializerExceptionInputStream entity(EdmEntityType entityType, Entity entity, EntitySerializerOptions options) throws SerializerException
entityType - the EdmEntityTypeentity - the data of the entityoptions - options for the serializerSerializerExceptionInputStream primitive(EdmPrimitiveType type, Property property, PrimitiveSerializerOptions options) throws SerializerException
type - primitive typeproperty - property valueoptions - options for the serializerSerializerExceptionInputStream complex(EdmComplexType type, Property property, ComplexSerializerOptions options) throws SerializerException
type - complex typeproperty - property valueoptions - options for the serializerSerializerExceptionInputStream primitiveCollection(EdmPrimitiveType type, Property property, PrimitiveSerializerOptions options) throws SerializerException
type - primitive typeproperty - property valueoptions - options for the serializerSerializerExceptionInputStream complexCollection(EdmComplexType type, Property property, ComplexSerializerOptions options) throws SerializerException
type - complex typeproperty - property valueoptions - options for the serializerSerializerExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.