public class AtomSerializerDeserializer extends Object implements ContentTypeBasedSerializer, ContentTypeBasedDeserializer
| Constructor and Description |
|---|
AtomSerializerDeserializer() |
AtomSerializerDeserializer(org.apache.olingo.odata2.core.commons.ContentType.ODataFormat odataFormat) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
readBatchRequest(List<BatchPart> batchParts,
String boundary)
Reads Batch Request Parts and returns an input Stream
|
ODataEntry |
readEntry(EdmEntitySet entitySet,
EntityStream content)
Returns an ODataEntry
|
ODataErrorContext |
readErrorDocument(InputStream errorDocument)
Read (de-serialize) data from error document as
InputStream and provide according
ODataErrorContext. |
ODataFeed |
readFeed(EdmEntitySet entitySet,
EntityStream content)
Returns an ODataFeed
|
Object |
readFunctionImport(EdmFunctionImport functionImport,
EntityStream content)
Returns an object
|
ODataResponse |
writeBatchResponse(List<BatchResponsePart> batchResponseParts)
Returns an ODataResponse
|
ODataResponse |
writeEntry(EdmEntitySet entitySet,
Entity data)
Returns an OData Response for a given entry
|
ODataResponse |
writeFeed(EdmEntitySet entitySet,
EntityCollection data)
Returns an OData Response for a given feed
|
public AtomSerializerDeserializer()
throws EntityProviderException
EntityProviderExceptionpublic AtomSerializerDeserializer(org.apache.olingo.odata2.core.commons.ContentType.ODataFormat odataFormat)
throws EntityProviderException
odataFormat - EntityProviderExceptionpublic ODataResponse writeEntry(EdmEntitySet entitySet, Entity data) throws EntityProviderException
ContentTypeBasedSerializerwriteEntry in interface ContentTypeBasedSerializerEntityProviderExceptionpublic ODataFeed readFeed(EdmEntitySet entitySet, EntityStream content) throws EntityProviderException
ContentTypeBasedDeserializerreadFeed in interface ContentTypeBasedDeserializerEntityProviderExceptionpublic ODataEntry readEntry(EdmEntitySet entitySet, EntityStream content) throws EntityProviderException
ContentTypeBasedDeserializerreadEntry in interface ContentTypeBasedDeserializerEntityProviderExceptionpublic ODataErrorContext readErrorDocument(InputStream errorDocument) throws EntityProviderException
ContentTypeBasedDeserializerInputStream and provide according
ODataErrorContext.readErrorDocument in interface ContentTypeBasedDeserializererrorDocument - error document which is readEntityProviderException - if reading of data (de-serialization) failspublic ODataResponse writeFeed(EdmEntitySet entitySet, EntityCollection data) throws EntityProviderException
ContentTypeBasedSerializerwriteFeed in interface ContentTypeBasedSerializerEntityProviderExceptionpublic InputStream readBatchRequest(List<BatchPart> batchParts, String boundary)
ContentTypeBasedSerializerreadBatchRequest in interface ContentTypeBasedSerializerpublic ODataResponse writeBatchResponse(List<BatchResponsePart> batchResponseParts) throws BatchException
ContentTypeBasedDeserializerwriteBatchResponse in interface ContentTypeBasedDeserializerBatchExceptionpublic Object readFunctionImport(EdmFunctionImport functionImport, EntityStream content) throws EntityProviderException
ContentTypeBasedDeserializerreadFunctionImport in interface ContentTypeBasedDeserializerEntityProviderExceptionCopyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.