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