Class JsonSerializerDeserializer
- java.lang.Object
-
- org.apache.olingo.odata2.client.core.ep.JsonSerializerDeserializer
-
- All Implemented Interfaces:
ContentTypeBasedDeserializer,ContentTypeBasedSerializer
public class JsonSerializerDeserializer extends Object implements ContentTypeBasedSerializer, ContentTypeBasedDeserializer
This class includes methods to serialize deserialize JSON Content type
-
-
Constructor Summary
Constructors Constructor Description JsonSerializerDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamreadBatchRequest(List<org.apache.olingo.odata2.api.client.batch.BatchPart> batchParts, String boundary)org.apache.olingo.odata2.api.ep.entry.ODataEntryreadEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, EntityStream content)org.apache.olingo.odata2.api.processor.ODataErrorContextreadErrorDocument(InputStream errorDocument)org.apache.olingo.odata2.api.ep.feed.ODataFeedreadFeed(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, EntityStream content)ObjectreadFunctionImport(org.apache.olingo.odata2.api.edm.EdmFunctionImport functionImport, EntityStream content)org.apache.olingo.odata2.api.processor.ODataResponsewriteBatchResponse(List<org.apache.olingo.odata2.api.batch.BatchResponsePart> batchResponseParts)org.apache.olingo.odata2.api.processor.ODataResponsewriteEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Entity data)org.apache.olingo.odata2.api.processor.ODataResponsewriteFeed(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, EntityCollection data)
-
-
-
Method Detail
-
writeEntry
public org.apache.olingo.odata2.api.processor.ODataResponse writeEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Entity data) throws org.apache.olingo.odata2.api.ep.EntityProviderException- Specified by:
writeEntryin interfaceContentTypeBasedSerializer- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
readFeed
public org.apache.olingo.odata2.api.ep.feed.ODataFeed readFeed(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, EntityStream content) throws org.apache.olingo.odata2.api.ep.EntityProviderException- Specified by:
readFeedin interfaceContentTypeBasedDeserializer- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
readEntry
public org.apache.olingo.odata2.api.ep.entry.ODataEntry readEntry(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, EntityStream content) throws org.apache.olingo.odata2.api.ep.EntityProviderException- Specified by:
readEntryin interfaceContentTypeBasedDeserializer- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
readErrorDocument
public org.apache.olingo.odata2.api.processor.ODataErrorContext readErrorDocument(InputStream errorDocument) throws org.apache.olingo.odata2.api.ep.EntityProviderException
- Specified by:
readErrorDocumentin interfaceContentTypeBasedDeserializer- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
writeFeed
public org.apache.olingo.odata2.api.processor.ODataResponse writeFeed(org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, EntityCollection data) throws org.apache.olingo.odata2.api.ep.EntityProviderException- Specified by:
writeFeedin interfaceContentTypeBasedSerializer- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
writeBatchResponse
public org.apache.olingo.odata2.api.processor.ODataResponse writeBatchResponse(List<org.apache.olingo.odata2.api.batch.BatchResponsePart> batchResponseParts) throws org.apache.olingo.odata2.api.batch.BatchException
- Specified by:
writeBatchResponsein interfaceContentTypeBasedDeserializer- Throws:
org.apache.olingo.odata2.api.batch.BatchException
-
readBatchRequest
public InputStream readBatchRequest(List<org.apache.olingo.odata2.api.client.batch.BatchPart> batchParts, String boundary)
- Specified by:
readBatchRequestin interfaceContentTypeBasedSerializer
-
readFunctionImport
public Object readFunctionImport(org.apache.olingo.odata2.api.edm.EdmFunctionImport functionImport, EntityStream content) throws org.apache.olingo.odata2.api.ep.EntityProviderException
- Specified by:
readFunctionImportin interfaceContentTypeBasedDeserializer- Throws:
org.apache.olingo.odata2.api.ep.EntityProviderException
-
-