Interface EntityProcessor
-
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
public interface EntityProcessor extends ODataProcessor
Execute a OData entity request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ODataResponsedeleteEntity(DeleteUriInfo uriInfo, String contentType)Deletes an entity.ODataResponseexistsEntity(GetEntityCountUriInfo uriInfo, String contentType)Checks whether an entity exists.ODataResponsereadEntity(GetEntityUriInfo uriInfo, String contentType)Reads an entity.ODataResponseupdateEntity(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 Detail
-
readEntity
ODataResponse readEntity(GetEntityUriInfo uriInfo, String contentType) throws ODataException
Reads an entity.- Parameters:
uriInfo- URI InfocontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException- Caso ocorra exceção OData
-
existsEntity
ODataResponse existsEntity(GetEntityCountUriInfo uriInfo, String contentType) throws ODataException
Checks whether an entity exists.- Parameters:
uriInfo- URI InfocontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException- Caso ocorra exceção OData
-
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- Caso ocorra exceção OData
-
deleteEntity
ODataResponse deleteEntity(DeleteUriInfo uriInfo, String contentType) throws ODataException
Deletes an entity.- Parameters:
uriInfo- aDeleteUriInfoobject with information from the URI parsercontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException- Caso ocorra exceção OData
-
-