Package org.apache.olingo.odata2.core.ep
Class ProviderFacadeImpl
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.ProviderFacadeImpl
-
- All Implemented Interfaces:
EntityProvider.EntityProviderInterface
public class ProviderFacadeImpl extends Object implements EntityProvider.EntityProviderInterface
-
-
Constructor Summary
Constructors Constructor Description ProviderFacadeImpl()
-
Method Summary
-
-
-
Method Detail
-
writeErrorDocument
public ODataResponse writeErrorDocument(ODataErrorContext context)
- Specified by:
writeErrorDocumentin interfaceEntityProvider.EntityProviderInterface
-
writeServiceDocument
public ODataResponse writeServiceDocument(String contentType, Edm edm, String serviceRoot) throws EntityProviderException
- Specified by:
writeServiceDocumentin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writePropertyValue
public ODataResponse writePropertyValue(EdmProperty edmProperty, Object value) throws EntityProviderException
- Specified by:
writePropertyValuein interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeText
public ODataResponse writeText(String value) throws EntityProviderException
- Specified by:
writeTextin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeBinary
public ODataResponse writeBinary(String mimeType, byte[] data) throws EntityProviderException
- Specified by:
writeBinaryin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeFeed
public ODataResponse writeFeed(String contentType, EdmEntitySet entitySet, List<Map<String,Object>> data, EntityProviderWriteProperties properties) throws EntityProviderException
- Specified by:
writeFeedin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeEntry
public ODataResponse writeEntry(String contentType, EdmEntitySet entitySet, Map<String,Object> data, EntityProviderWriteProperties properties) throws EntityProviderException
- Specified by:
writeEntryin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeProperty
public ODataResponse writeProperty(String contentType, EdmProperty edmProperty, Object value) throws EntityProviderException
- Specified by:
writePropertyin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeLink
public ODataResponse writeLink(String contentType, EdmEntitySet entitySet, Map<String,Object> data, EntityProviderWriteProperties properties) throws EntityProviderException
- Specified by:
writeLinkin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeLinks
public ODataResponse writeLinks(String contentType, EdmEntitySet entitySet, List<Map<String,Object>> data, EntityProviderWriteProperties properties) throws EntityProviderException
- Specified by:
writeLinksin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeFunctionImport
public ODataResponse writeFunctionImport(String contentType, EdmFunctionImport functionImport, Object data, EntityProviderWriteProperties properties) throws EntityProviderException
- Specified by:
writeFunctionImportin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readErrorDocument
public ODataErrorContext readErrorDocument(InputStream errorDocument, String contentType) throws EntityProviderException
- Specified by:
readErrorDocumentin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readFeed
public ODataFeed readFeed(String contentType, EdmEntitySet entitySet, InputStream content, EntityProviderReadProperties properties) throws EntityProviderException
- Specified by:
readFeedin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readDeltaFeed
public ODataDeltaFeed readDeltaFeed(String contentType, EdmEntitySet entitySet, InputStream content, EntityProviderReadProperties properties) throws EntityProviderException
- Specified by:
readDeltaFeedin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readEntry
public ODataEntry readEntry(String contentType, EdmEntitySet entitySet, InputStream content, EntityProviderReadProperties properties) throws EntityProviderException
- Specified by:
readEntryin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readProperty
public Map<String,Object> readProperty(String contentType, EdmProperty edmProperty, InputStream content, EntityProviderReadProperties properties) throws EntityProviderException
- Specified by:
readPropertyin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readPropertyValue
public Object readPropertyValue(EdmProperty edmProperty, InputStream content, Class<?> typeMapping) throws EntityProviderException
- Specified by:
readPropertyValuein interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readFunctionImport
public Object readFunctionImport(String contentType, EdmFunctionImport functionImport, InputStream content, EntityProviderReadProperties properties) throws EntityProviderException
- Specified by:
readFunctionImportin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readLinks
public List<String> readLinks(String contentType, EdmEntitySet entitySet, InputStream content) throws EntityProviderException
- Specified by:
readLinksin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readLink
public String readLink(String contentType, EdmEntitySet entitySet, InputStream content) throws EntityProviderException
- Specified by:
readLinkin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readBinary
public byte[] readBinary(InputStream content) throws EntityProviderException
- Specified by:
readBinaryin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeMetadata
public ODataResponse writeMetadata(List<Schema> schemas, Map<String,String> predefinedNamespaces) throws EntityProviderException
- Specified by:
writeMetadatain interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
writeMetadata
public ODataResponse writeMetadata(DataServices seriviceMetadata, Map<String,String> predefinedNamespaces) throws EntityProviderException
- Specified by:
writeMetadatain interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readMetadata
public Edm readMetadata(InputStream inputStream, boolean validate) throws EntityProviderException
- Specified by:
readMetadatain interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
readServiceDocument
public ServiceDocument readServiceDocument(InputStream serviceDocument, String contentType) throws EntityProviderException
- Specified by:
readServiceDocumentin interfaceEntityProvider.EntityProviderInterface- Throws:
EntityProviderException
-
parseBatchRequest
public List<BatchRequestPart> parseBatchRequest(String contentType, InputStream content, EntityProviderBatchProperties properties) throws BatchException
- Specified by:
parseBatchRequestin interfaceEntityProvider.EntityProviderInterface- Throws:
BatchException
-
writeBatchResponse
public ODataResponse writeBatchResponse(List<BatchResponsePart> batchResponseParts) throws BatchException
- Specified by:
writeBatchResponsein interfaceEntityProvider.EntityProviderInterface- Throws:
BatchException
-
writeBatchRequest
public InputStream writeBatchRequest(List<BatchPart> batchParts, String boundary)
- Specified by:
writeBatchRequestin interfaceEntityProvider.EntityProviderInterface
-
parseBatchResponse
public List<BatchSingleResponse> parseBatchResponse(String contentType, InputStream content) throws BatchException
- Specified by:
parseBatchResponsein interfaceEntityProvider.EntityProviderInterface- Throws:
BatchException
-
-