Interface EntityLinkProcessor
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
Execute an OData entity link request.
-
Method Summary
Modifier and TypeMethodDescriptiondeleteEntityLink(DeleteUriInfo uriInfo, String contentType) Deletes the link to the target entity of a navigation property.existsEntityLink(GetEntityLinkCountUriInfo uriInfo, String contentType) Returns whether the target entity of a navigation property exists.readEntityLink(GetEntityLinkUriInfo uriInfo, String contentType) Reads the URI of the target entity of a navigation property.updateEntityLink(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) Updates the link to the target entity of a navigation property.Methods inherited from interface org.apache.olingo.odata2.api.processor.ODataProcessor
getContext, setContext
-
Method Details
-
readEntityLink
ODataResponse readEntityLink(GetEntityLinkUriInfo uriInfo, String contentType) throws ODataException Reads the URI of the target entity of a navigation property.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
existsEntityLink
ODataResponse existsEntityLink(GetEntityLinkCountUriInfo uriInfo, String contentType) throws ODataException Returns whether the target entity of a navigation property exists.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
updateEntityLink
ODataResponse updateEntityLink(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException Updates the link to the target entity of a navigation property.- Parameters:
uriInfo- information about the request URIcontent- the content of the request, containing the new URIrequestContentType- the content type of the request bodycontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
deleteEntityLink
Deletes the link to the target entity of a navigation property.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-