public interface IAttachmentRequest extends IHttpRequest
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Attachment> callback)
Delete this item from the service
|
IAttachmentRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Attachment |
get()
Gets the Attachment from the service
|
void |
get(ICallback<? super Attachment> callback)
Gets the Attachment from the service
|
Attachment |
patch(Attachment sourceAttachment)
Patches this Attachment with a source
|
void |
patch(Attachment sourceAttachment,
ICallback<? super Attachment> callback)
Patches this Attachment with a source
|
Attachment |
post(Attachment newAttachment)
Posts a Attachment with a new object
|
void |
post(Attachment newAttachment,
ICallback<? super Attachment> callback)
Posts a Attachment with a new object
|
Attachment |
put(Attachment newAttachment)
Posts a Attachment with a new object
|
void |
put(Attachment newAttachment,
ICallback<? super Attachment> callback)
Posts a Attachment with a new object
|
IAttachmentRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodvoid get(ICallback<? super Attachment> callback)
callback - the callback to be called after success or failureAttachment get() throws ClientException
ClientException - this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<? super Attachment> callback)
callback - the callback when the deletion action has completedvoid delete()
throws ClientException
ClientException - if there was an exception during the delete operationvoid patch(Attachment sourceAttachment, ICallback<? super Attachment> callback)
sourceAttachment - the source object with updatescallback - the callback to be called after success or failureAttachment patch(Attachment sourceAttachment) throws ClientException
sourceAttachment - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonvoid post(Attachment newAttachment, ICallback<? super Attachment> callback)
newAttachment - the new object to createcallback - the callback to be called after success or failureAttachment post(Attachment newAttachment) throws ClientException
newAttachment - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonvoid put(Attachment newAttachment, ICallback<? super Attachment> callback)
newAttachment - the object to create/updatecallback - the callback to be called after success or failureAttachment put(Attachment newAttachment) throws ClientException
newAttachment - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonIAttachmentRequest select(java.lang.String value)
value - the select clauseIAttachmentRequest expand(java.lang.String value)
value - the expand clause