Interface EntityProcessor
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
Execute a OData entity request.
-
Method Summary
Modifier and TypeMethodDescriptiondeleteEntity(DeleteUriInfo uriInfo, String contentType) Deletes an entity.existsEntity(GetEntityCountUriInfo uriInfo, String contentType) Checks whether an entity exists.readEntity(GetEntityUriInfo uriInfo, String contentType) Reads an entity.updateEntity(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) Updates an entity.Methods inherited from interface org.apache.olingo.odata2.api.processor.ODataProcessor
getContext, setContext
-
Method Details
-
readEntity
Reads an entity.- Parameters:
contentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
existsEntity
Checks whether an entity exists.- Parameters:
contentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
updateEntity
ODataResponse updateEntity(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException Updates an entity.- Parameters:
uriInfo- information about the request URIcontent- the content of the request, containing the updated entity datarequestContentType- the content type of the request bodymerge- iftrue, properties not present in the data are left unchanged; iffalse, they are resetcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
deleteEntity
Deletes an entity.- Parameters:
uriInfo- aDeleteUriInfoobject with information from the URI parsercontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-