Interface EntityLinkProcessor
-
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
public interface EntityLinkProcessor extends ODataProcessor
Execute an OData entity link request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ODataResponsedeleteEntityLink(DeleteUriInfo uriInfo, String contentType)Deletes the link to the target entity of a navigation property.ODataResponseexistsEntityLink(GetEntityLinkCountUriInfo uriInfo, String contentType)Returns whether the target entity of a navigation property exists.ODataResponsereadEntityLink(GetEntityLinkUriInfo uriInfo, String contentType)Reads the URI of the target entity of a navigation property.ODataResponseupdateEntityLink(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 Detail
-
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- Caso ocorra exceção OData
-
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- Caso ocorra exceção OData
-
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- Caso ocorra exceção OData
-
deleteEntityLink
ODataResponse deleteEntityLink(DeleteUriInfo uriInfo, String contentType) throws ODataException
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- Caso ocorra exceção OData
-
-