Class OlingoProcessor
java.lang.Object
com.sap.cds.adapter.odata.v4.processors.OlingoProcessor
- All Implemented Interfaces:
ActionComplexCollectionProcessor
,ActionComplexProcessor
,ActionEntityCollectionProcessor
,ActionEntityProcessor
,ActionPrimitiveCollectionProcessor
,ActionPrimitiveProcessor
,ActionVoidProcessor
,BatchProcessor
,ComplexCollectionProcessor
,ComplexProcessor
,CountEntityCollectionProcessor
,DeltaProcessor
,EntityCollectionProcessor
,EntityProcessor
,ErrorProcessor
,PrimitiveCollectionProcessor
,PrimitiveProcessor
,PrimitiveValueProcessor
,Processor
public class OlingoProcessor
extends Object
implements EntityProcessor, CountEntityCollectionProcessor, ActionEntityProcessor, ActionEntityCollectionProcessor, PrimitiveValueProcessor, PrimitiveCollectionProcessor, ActionPrimitiveProcessor, ActionPrimitiveCollectionProcessor, ComplexProcessor, ComplexCollectionProcessor, ActionComplexProcessor, ActionComplexCollectionProcessor, ActionVoidProcessor, BatchProcessor, ErrorProcessor, DeltaProcessor
Implements all supported Olingo Processors and delegates requests to the
ODataProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
countEntityCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
createEntity
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
deleteComplex
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
deleteComplexCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
deleteEntity
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
deletePrimitive
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
deletePrimitiveCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
deletePrimitiveValue
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) void
init
(OData odata, ServiceMetadata serviceMetadata) void
processActionComplex
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
processActionComplexCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
processActionEntity
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
processActionEntityCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
processActionPrimitive
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
processActionPrimitiveCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
processActionVoid
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat) void
processBatch
(BatchFacade facade, ODataRequest odataRequest, ODataResponse odataResponse) processChangeSet
(BatchFacade facade, List<ODataRequest> odataRequests) void
processError
(ODataRequest odataRequest, ODataResponse odataResponse, ODataServerError serverError, ContentType responseFormat) void
readComplex
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
readComplexCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
readEntity
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
readEntityCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
readPrimitive
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
readPrimitiveCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
readPrimitiveValue
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) void
updateComplex
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
updateComplexCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
updateEntity
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
updateEntityCollection
(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
updatePrimitive
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
updatePrimitiveCollection
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) void
updatePrimitiveValue
(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat)
-
Constructor Details
-
OlingoProcessor
-
-
Method Details
-
init
-
readEntity
public void readEntity(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readEntity
in interfaceEntityProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
readEntityCollection
public void readEntityCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readEntityCollection
in interfaceEntityCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
countEntityCollection
public void countEntityCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
countEntityCollection
in interfaceCountEntityCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
readComplex
public void readComplex(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readComplex
in interfaceComplexProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
readComplexCollection
public void readComplexCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readComplexCollection
in interfaceComplexCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
readPrimitive
public void readPrimitive(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readPrimitive
in interfacePrimitiveProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
readPrimitiveValue
public void readPrimitiveValue(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readPrimitiveValue
in interfacePrimitiveValueProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
readPrimitiveCollection
public void readPrimitiveCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
readPrimitiveCollection
in interfacePrimitiveCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
createEntity
public void createEntity(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
createEntity
in interfaceEntityProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionEntity
public void processActionEntity(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionEntity
in interfaceActionEntityProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionEntityCollection
public void processActionEntityCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionEntityCollection
in interfaceActionEntityCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionComplex
public void processActionComplex(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionComplex
in interfaceActionComplexProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionComplexCollection
public void processActionComplexCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionComplexCollection
in interfaceActionComplexCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionPrimitive
public void processActionPrimitive(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionPrimitive
in interfaceActionPrimitiveProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionPrimitiveCollection
public void processActionPrimitiveCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionPrimitiveCollection
in interfaceActionPrimitiveCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processActionVoid
public void processActionVoid(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
processActionVoid
in interfaceActionVoidProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updateEntity
public void updateEntity(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updateEntity
in interfaceEntityProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updateEntityCollection
public void updateEntityCollection(ODataRequest request, ODataResponse response, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updateEntityCollection
in interfaceDeltaProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updateComplex
public void updateComplex(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updateComplex
in interfaceComplexProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updateComplexCollection
public void updateComplexCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updateComplexCollection
in interfaceComplexCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updatePrimitive
public void updatePrimitive(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updatePrimitive
in interfacePrimitiveProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updatePrimitiveValue
public void updatePrimitiveValue(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updatePrimitiveValue
in interfacePrimitiveValueProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
updatePrimitiveCollection
public void updatePrimitiveCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo, ContentType requestFormat, ContentType responseFormat) throws ODataApplicationException, ODataLibraryException - Specified by:
updatePrimitiveCollection
in interfacePrimitiveCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
deleteEntity
public void deleteEntity(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
deleteEntity
in interfaceEntityProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
deleteComplex
public void deleteComplex(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
deleteComplex
in interfaceComplexProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
deleteComplexCollection
public void deleteComplexCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
deleteComplexCollection
in interfaceComplexCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
deletePrimitive
public void deletePrimitive(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
deletePrimitive
in interfacePrimitiveProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
deletePrimitiveValue
public void deletePrimitiveValue(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
deletePrimitiveValue
in interfacePrimitiveValueProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
deletePrimitiveCollection
public void deletePrimitiveCollection(ODataRequest odataRequest, ODataResponse odataResponse, UriInfo uriInfo) throws ODataApplicationException, ODataLibraryException - Specified by:
deletePrimitiveCollection
in interfacePrimitiveCollectionProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processBatch
public void processBatch(BatchFacade facade, ODataRequest odataRequest, ODataResponse odataResponse) throws ODataApplicationException, ODataLibraryException - Specified by:
processBatch
in interfaceBatchProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processChangeSet
public ODataResponsePart processChangeSet(BatchFacade facade, List<ODataRequest> odataRequests) throws ODataApplicationException, ODataLibraryException - Specified by:
processChangeSet
in interfaceBatchProcessor
- Throws:
ODataApplicationException
ODataLibraryException
-
processError
public void processError(ODataRequest odataRequest, ODataResponse odataResponse, ODataServerError serverError, ContentType responseFormat) - Specified by:
processError
in interfaceErrorProcessor
-