public class Mirror.Timeline.Attachments.Get extends MirrorRequest<Attachment>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Mirror.Timeline.Attachments.Get(String itemId,
String attachmentId)
Retrieves an attachment on a timeline item by item ID and attachment ID.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(OutputStream outputStream) |
InputStream |
executeMediaAsInputStream() |
HttpResponse |
executeUsingHead() |
String |
getAttachmentId()
The ID of the attachment.
|
String |
getItemId()
The ID of the timeline item the attachment belongs to.
|
Mirror.Timeline.Attachments.Get |
set(String parameterName,
Object value) |
Mirror.Timeline.Attachments.Get |
setAlt(String alt)
Data format for the response.
|
Mirror.Timeline.Attachments.Get |
setAttachmentId(String attachmentId)
The ID of the attachment.
|
Mirror.Timeline.Attachments.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Mirror.Timeline.Attachments.Get |
setItemId(String itemId)
The ID of the timeline item the attachment belongs to.
|
Mirror.Timeline.Attachments.Get |
setKey(String key)
API key.
|
Mirror.Timeline.Attachments.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Mirror.Timeline.Attachments.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Mirror.Timeline.Attachments.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Mirror.Timeline.Attachments.Get |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Mirror.Timeline.Attachments.Get(String itemId, String attachmentId)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Mirror.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
itemId - The ID of the timeline item the attachment belongs to.attachmentId - The ID of the attachment.public void executeMediaAndDownloadTo(OutputStream outputStream) throws IOException
executeMediaAndDownloadTo in class AbstractGoogleClientRequest<Attachment>IOExceptionpublic InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream in class AbstractGoogleClientRequest<Attachment>IOExceptionpublic HttpResponse executeMedia() throws IOException
executeMedia in class AbstractGoogleClientRequest<Attachment>IOExceptionpublic HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Attachment>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Attachment>IOExceptionpublic Mirror.Timeline.Attachments.Get setAlt(String alt)
MirrorRequestsetAlt in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Get setFields(String fields)
MirrorRequestsetFields in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Get setKey(String key)
MirrorRequestsetKey in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Get setOauthToken(String oauthToken)
MirrorRequestsetOauthToken in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Get setPrettyPrint(Boolean prettyPrint)
MirrorRequestsetPrettyPrint in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Get setQuotaUser(String quotaUser)
MirrorRequestsetQuotaUser in class MirrorRequest<Attachment>public Mirror.Timeline.Attachments.Get setUserIp(String userIp)
MirrorRequestsetUserIp in class MirrorRequest<Attachment>public String getItemId()
public Mirror.Timeline.Attachments.Get setItemId(String itemId)
public String getAttachmentId()
public Mirror.Timeline.Attachments.Get setAttachmentId(String attachmentId)
public Mirror.Timeline.Attachments.Get set(String parameterName, Object value)
set in class MirrorRequest<Attachment>