public interface ISubscriptionRequest extends IHttpRequest
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Subscription> callback)
Delete this item from the service
|
ISubscriptionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Subscription |
get()
Gets the Subscription from the service
|
void |
get(ICallback<? super Subscription> callback)
Gets the Subscription from the service
|
Subscription |
patch(Subscription sourceSubscription)
Patches this Subscription with a source
|
void |
patch(Subscription sourceSubscription,
ICallback<? super Subscription> callback)
Patches this Subscription with a source
|
Subscription |
post(Subscription newSubscription)
Posts a Subscription with a new object
|
void |
post(Subscription newSubscription,
ICallback<? super Subscription> callback)
Posts a Subscription with a new object
|
Subscription |
put(Subscription newSubscription)
Posts a Subscription with a new object
|
void |
put(Subscription newSubscription,
ICallback<? super Subscription> callback)
Posts a Subscription with a new object
|
ISubscriptionRequest |
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, withHttpMethod
void get(ICallback<? super Subscription> callback)
callback
- the callback to be called after success or failureSubscription get() throws ClientException
ClientException
- this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<? super Subscription> callback)
callback
- the callback when the deletion action has completedvoid delete() throws ClientException
ClientException
- if there was an exception during the delete operationvoid patch(Subscription sourceSubscription, ICallback<? super Subscription> callback)
sourceSubscription
- the source object with updatescallback
- the callback to be called after success or failureSubscription patch(Subscription sourceSubscription) throws ClientException
sourceSubscription
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonvoid post(Subscription newSubscription, ICallback<? super Subscription> callback)
newSubscription
- the new object to createcallback
- the callback to be called after success or failureSubscription post(Subscription newSubscription) throws ClientException
newSubscription
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonvoid put(Subscription newSubscription, ICallback<? super Subscription> callback)
newSubscription
- the object to create/updatecallback
- the callback to be called after success or failureSubscription put(Subscription newSubscription) throws ClientException
newSubscription
- the object to create/updateClientException
- this exception occurs if the request was unable to complete for any reasonISubscriptionRequest select(java.lang.String value)
value
- the select clauseISubscriptionRequest expand(java.lang.String value)
value
- the expand clause