Package co.arago.hiro.client.rest
Class GraphAPI.GetBlobCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetBlobCommand,HttpResponseParser>
-
- co.arago.hiro.client.rest.GraphAPI.GetBlobCommand
-
- Enclosing class:
- GraphAPI
public class GraphAPI.GetBlobCommand extends AuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetBlobCommand,HttpResponseParser>
get a binary blob / content / attachment from the graphAPI GET /api/graph/[version]/{ogit/_id}/content
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGetBlobCommand(java.lang.String ogitId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponseParserexecute()protected GraphAPI.GetBlobCommandself()GraphAPI.GetBlobCommandsetContentId(java.lang.String contentId)GraphAPI.GetBlobCommandsetIncludeDeleted(boolean includeDeleted)-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
setContentId
public GraphAPI.GetBlobCommand setContentId(java.lang.String contentId)
- Parameters:
contentId- specific version ogit/_c-id of content- Returns:
- this
-
setIncludeDeleted
public GraphAPI.GetBlobCommand setIncludeDeleted(boolean includeDeleted)
- Parameters:
includeDeleted- allow getting if ogit/_is-deleted=true- Returns:
- this
-
self
protected GraphAPI.GetBlobCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetBlobCommand,HttpResponseParser>
-
execute
public HttpResponseParser execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.GetBlobCommand,HttpResponseParser>- Returns:
- A
HttpResponseParsercontaining the InputStream of the content, the mediaType and the size (if available). - Throws:
HiroException- When the call returns a http status error.java.io.IOException- When the call got an IO error.java.lang.InterruptedException- When the call gets interrupted.
-
-