Interface EntityMediaProcessor
- All Superinterfaces:
ODataProcessor
- All Known Implementing Classes:
ODataSingleProcessor
Execute an OData entity media request
-
Method Summary
Modifier and TypeMethodDescriptiondeleteEntityMedia(DeleteUriInfo uriInfo, String contentType) Deletes the media resource of an entity.readEntityMedia(GetMediaResourceUriInfo uriInfo, String contentType) Reads the media resource of an entity.updateEntityMedia(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) Updates the media resource of an entity.Methods inherited from interface org.apache.olingo.odata2.api.processor.ODataProcessor
getContext, setContext
-
Method Details
-
readEntityMedia
ODataResponse readEntityMedia(GetMediaResourceUriInfo uriInfo, String contentType) throws ODataException Reads the media resource of an entity.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
updateEntityMedia
ODataResponse updateEntityMedia(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException Updates the media resource of an entity.- Parameters:
uriInfo- information about the request URIcontent- the content of the requestrequestContentType- the content type of the request bodycontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-
deleteEntityMedia
Deletes the media resource of an entity.- Parameters:
uriInfo- information about the request URIcontentType- the content type of the response- Returns:
- an
ODataResponseobject - Throws:
ODataException
-