public class SegmentRequest extends BaseRequest implements ISegmentRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
SegmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Segment
|
| 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)
Creates a Segment with a new object
|
void |
post(Segment newSegment,
ICallback<? super Segment> callback)
Creates a Segment with a new object
|
Segment |
put(Segment newSegment)
Creates a Segment with a new object
|
void |
put(Segment newSegment,
ICallback<? super Segment> callback)
Creates a Segment with a new object
|
ISegmentRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic SegmentRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<? super Segment> callback)
get in interface ISegmentRequestcallback - the callback to be called after success or failurepublic Segment get() throws ClientException
get in interface ISegmentRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super Segment> callback)
delete in interface ISegmentRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface ISegmentRequestClientException - if there was an exception during the delete operationpublic void patch(Segment sourceSegment, ICallback<? super Segment> callback)
patch in interface ISegmentRequestsourceSegment - the source object with updatescallback - the callback to be called after success or failurepublic Segment patch(Segment sourceSegment) throws ClientException
patch in interface ISegmentRequestsourceSegment - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(Segment newSegment, ICallback<? super Segment> callback)
post in interface ISegmentRequestnewSegment - the new object to createcallback - the callback to be called after success or failurepublic Segment post(Segment newSegment) throws ClientException
post in interface ISegmentRequestnewSegment - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(Segment newSegment, ICallback<? super Segment> callback)
put in interface ISegmentRequestnewSegment - the object to create/updatecallback - the callback to be called after success or failurepublic Segment put(Segment newSegment) throws ClientException
put in interface ISegmentRequestnewSegment - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic ISegmentRequest select(java.lang.String value)
select in interface ISegmentRequestvalue - the select clausepublic ISegmentRequest expand(java.lang.String value)
expand in interface ISegmentRequestvalue - the expand clause