public interface EntityProcessor extends ODataProcessor
Modifier and Type | Method and Description |
---|---|
ODataResponse |
deleteEntity(DeleteUriInfo uriInfo,
String contentType)
Deletes an entity.
|
ODataResponse |
existsEntity(GetEntityCountUriInfo uriInfo,
String contentType)
Checks whether an entity exists.
|
ODataResponse |
readEntity(GetEntityUriInfo uriInfo,
String contentType)
Reads an entity.
|
ODataResponse |
updateEntity(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
boolean merge,
String contentType)
Updates an entity.
|
getContext, setContext
ODataResponse readEntity(GetEntityUriInfo uriInfo, String contentType) throws ODataException
contentType
- the content type of the responseODataResponse
objectODataException
ODataResponse existsEntity(GetEntityCountUriInfo uriInfo, String contentType) throws ODataException
contentType
- the content type of the responseODataResponse
objectODataException
ODataResponse updateEntity(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException
uriInfo
- information about the request URIcontent
- the content of the request, containing the updated entity datarequestContentType
- the content type of the request bodymerge
- if true
, properties not present in the data are left unchanged;
if false
, they are resetcontentType
- the content type of the responseODataResponse
objectODataException
ODataResponse deleteEntity(DeleteUriInfo uriInfo, String contentType) throws ODataException
uriInfo
- a DeleteUriInfo
object with information from the URI parsercontentType
- the content type of the responseODataResponse
objectODataException
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.