Class ListsProcessor
- java.lang.Object
-
- org.apache.olingo.odata2.api.processor.ODataSingleProcessor
-
- org.apache.olingo.odata2.ref.processor.ListsProcessor
-
- All Implemented Interfaces:
CustomContentType,ODataProcessorFeature,ODataProcessor,BatchProcessor,EntityComplexPropertyProcessor,EntityLinkProcessor,EntityLinksProcessor,EntityMediaProcessor,EntityProcessor,EntitySetProcessor,EntitySimplePropertyProcessor,EntitySimplePropertyValueProcessor,FunctionImportProcessor,FunctionImportValueProcessor,MetadataProcessor,ServiceDocumentProcessor
public class ListsProcessor extends ODataSingleProcessor
Implementation of the centralized parts of OData processing, allowing to use the simplified DataSource for the actual data handling.
-
-
Constructor Summary
Constructors Constructor Description ListsProcessor(ScenarioDataSource dataSource)ListsProcessor(ScenarioDataSource dataSource, BeanPropertyAccess valueAccess)
-
Method Summary
-
Methods inherited from class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
getContext, getCustomContentTypes, readMetadata, readServiceDocument, setContext
-
-
-
-
Constructor Detail
-
ListsProcessor
public ListsProcessor(ScenarioDataSource dataSource)
-
ListsProcessor
public ListsProcessor(ScenarioDataSource dataSource, BeanPropertyAccess valueAccess)
-
-
Method Detail
-
readEntitySet
public ODataResponse readEntitySet(GetEntitySetUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntitySetin interfaceEntitySetProcessor- Overrides:
readEntitySetin classODataSingleProcessor- Throws:
ODataException
-
countEntitySet
public ODataResponse countEntitySet(GetEntitySetCountUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
countEntitySetin interfaceEntitySetProcessor- Overrides:
countEntitySetin classODataSingleProcessor- Throws:
ODataException
-
readEntityLinks
public ODataResponse readEntityLinks(GetEntitySetLinksUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntityLinksin interfaceEntityLinksProcessor- Overrides:
readEntityLinksin classODataSingleProcessor- Throws:
ODataException
-
countEntityLinks
public ODataResponse countEntityLinks(GetEntitySetLinksCountUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
countEntityLinksin interfaceEntityLinksProcessor- Overrides:
countEntityLinksin classODataSingleProcessor- Throws:
ODataException
-
readEntity
public ODataResponse readEntity(GetEntityUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntityin interfaceEntityProcessor- Overrides:
readEntityin classODataSingleProcessor- Throws:
ODataException
-
existsEntity
public ODataResponse existsEntity(GetEntityCountUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
existsEntityin interfaceEntityProcessor- Overrides:
existsEntityin classODataSingleProcessor- Throws:
ODataException
-
deleteEntity
public ODataResponse deleteEntity(DeleteUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
deleteEntityin interfaceEntityProcessor- Overrides:
deleteEntityin classODataSingleProcessor- Throws:
ODataException
-
createEntity
public ODataResponse createEntity(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
- Specified by:
createEntityin interfaceEntitySetProcessor- Overrides:
createEntityin classODataSingleProcessor- Throws:
ODataException
-
updateEntity
public ODataResponse updateEntity(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException
- Specified by:
updateEntityin interfaceEntityProcessor- Overrides:
updateEntityin classODataSingleProcessor- Throws:
ODataException
-
readEntityLink
public ODataResponse readEntityLink(GetEntityLinkUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntityLinkin interfaceEntityLinkProcessor- Overrides:
readEntityLinkin classODataSingleProcessor- Throws:
ODataException
-
existsEntityLink
public ODataResponse existsEntityLink(GetEntityLinkCountUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
existsEntityLinkin interfaceEntityLinkProcessor- Overrides:
existsEntityLinkin classODataSingleProcessor- Throws:
ODataException
-
deleteEntityLink
public ODataResponse deleteEntityLink(DeleteUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
deleteEntityLinkin interfaceEntityLinkProcessor- Overrides:
deleteEntityLinkin classODataSingleProcessor- Throws:
ODataException
-
createEntityLink
public ODataResponse createEntityLink(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
- Specified by:
createEntityLinkin interfaceEntityLinksProcessor- Overrides:
createEntityLinkin classODataSingleProcessor- Throws:
ODataException
-
updateEntityLink
public ODataResponse updateEntityLink(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
- Specified by:
updateEntityLinkin interfaceEntityLinkProcessor- Overrides:
updateEntityLinkin classODataSingleProcessor- Throws:
ODataException
-
readEntityComplexProperty
public ODataResponse readEntityComplexProperty(GetComplexPropertyUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntityComplexPropertyin interfaceEntityComplexPropertyProcessor- Overrides:
readEntityComplexPropertyin classODataSingleProcessor- Throws:
ODataException
-
readEntitySimpleProperty
public ODataResponse readEntitySimpleProperty(GetSimplePropertyUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntitySimplePropertyin interfaceEntitySimplePropertyProcessor- Overrides:
readEntitySimplePropertyin classODataSingleProcessor- Throws:
ODataException
-
readEntitySimplePropertyValue
public ODataResponse readEntitySimplePropertyValue(GetSimplePropertyUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntitySimplePropertyValuein interfaceEntitySimplePropertyValueProcessor- Overrides:
readEntitySimplePropertyValuein classODataSingleProcessor- Throws:
ODataException
-
deleteEntitySimplePropertyValue
public ODataResponse deleteEntitySimplePropertyValue(DeleteUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
deleteEntitySimplePropertyValuein interfaceEntitySimplePropertyValueProcessor- Overrides:
deleteEntitySimplePropertyValuein classODataSingleProcessor- Throws:
ODataException
-
updateEntityComplexProperty
public ODataResponse updateEntityComplexProperty(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException
- Specified by:
updateEntityComplexPropertyin interfaceEntityComplexPropertyProcessor- Overrides:
updateEntityComplexPropertyin classODataSingleProcessor- Throws:
ODataException
-
updateEntitySimpleProperty
public ODataResponse updateEntitySimpleProperty(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
- Specified by:
updateEntitySimplePropertyin interfaceEntitySimplePropertyProcessor- Overrides:
updateEntitySimplePropertyin classODataSingleProcessor- Throws:
ODataException
-
updateEntitySimplePropertyValue
public ODataResponse updateEntitySimplePropertyValue(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
- Specified by:
updateEntitySimplePropertyValuein interfaceEntitySimplePropertyValueProcessor- Overrides:
updateEntitySimplePropertyValuein classODataSingleProcessor- Throws:
ODataException
-
readEntityMedia
public ODataResponse readEntityMedia(GetMediaResourceUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
readEntityMediain interfaceEntityMediaProcessor- Overrides:
readEntityMediain classODataSingleProcessor- Throws:
ODataException
-
deleteEntityMedia
public ODataResponse deleteEntityMedia(DeleteUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
deleteEntityMediain interfaceEntityMediaProcessor- Overrides:
deleteEntityMediain classODataSingleProcessor- Throws:
ODataException
-
updateEntityMedia
public ODataResponse updateEntityMedia(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
- Specified by:
updateEntityMediain interfaceEntityMediaProcessor- Overrides:
updateEntityMediain classODataSingleProcessor- Throws:
ODataException
-
executeFunctionImport
public ODataResponse executeFunctionImport(GetFunctionImportUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
executeFunctionImportin interfaceFunctionImportProcessor- Overrides:
executeFunctionImportin classODataSingleProcessor- Throws:
ODataException
-
executeFunctionImportValue
public ODataResponse executeFunctionImportValue(GetFunctionImportUriInfo uriInfo, String contentType) throws ODataException
- Specified by:
executeFunctionImportValuein interfaceFunctionImportValueProcessor- Overrides:
executeFunctionImportValuein classODataSingleProcessor- Throws:
ODataException
-
executeBatch
public ODataResponse executeBatch(BatchHandler handler, String contentType, InputStream content) throws ODataException
- Specified by:
executeBatchin interfaceBatchProcessor- Overrides:
executeBatchin classODataSingleProcessor- Throws:
ODataException
-
executeChangeSet
public BatchResponsePart executeChangeSet(BatchHandler handler, List<ODataRequest> requests) throws ODataException
- Specified by:
executeChangeSetin interfaceBatchProcessor- Overrides:
executeChangeSetin classODataSingleProcessor- Throws:
ODataException
-
-