public class CustomRequest<T> extends BaseRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
CustomRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<T> responseClass) |
| Modifier and Type | Method and Description |
|---|---|
static CustomRequest<com.google.gson.JsonObject> |
create(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions) |
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<java.lang.Void> callback)
Delete this item from the service
|
CustomRequest<T> |
expand(java.lang.String value)
Sets the expand clause for the request
|
T |
get() |
void |
get(ICallback<T> callback) |
void |
patch(ICallback<T> callback)
Patches this item with a source
|
T |
patch(T sourceObject)
Patches this item with a source
|
T |
post(T newObject)
Creates a new object
|
void |
post(T newObject,
ICallback<T> callback)
Creates a new object
|
T |
put(T putObject)
Creates a new object
|
void |
put(T putObject,
ICallback<T> callback)
Creates a new object
|
CustomRequest<T> |
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, withHttpMethodpublic CustomRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<T> responseClass)
public static CustomRequest<com.google.gson.JsonObject> create(java.lang.String requestUrl, IBaseClient client, java.util.List<? extends Option> requestOptions)
public T get() throws ClientException
ClientExceptionpublic void delete(ICallback<java.lang.Void> callback)
callback - the callback when the deletion action has completedpublic void delete()
throws ClientException
ClientException - if there was an exception during the delete operationpublic void patch(ICallback<T> callback)
callback - the callback to be called after success or failurepublic T patch(T sourceObject) throws ClientException
sourceObject - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(T newObject, ICallback<T> callback)
newObject - the new object to createcallback - the callback to be called after success or failurepublic T post(T newObject) throws ClientException
newObject - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(T putObject, ICallback<T> callback)
putObject - the new object to createcallback - the callback to be called after success or failurepublic T put(T putObject) throws ClientException
putObject - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic CustomRequest<T> select(java.lang.String value)
value - the select clausepublic CustomRequest<T> expand(java.lang.String value)
value - the expand clause