public class EntityWithReferenceRequest extends BaseRequest implements IEntityWithReferenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
EntityWithReferenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Entity
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
void |
delete(ICallback<Entity> callback) |
IEntityWithReferenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Entity |
get() |
void |
get(ICallback<Entity> callback) |
Entity |
patch(Entity sourceEntity) |
void |
patch(Entity sourceEntity,
ICallback<Entity> callback) |
Entity |
post(Entity newEntity,
IJsonBackedObject payload) |
void |
post(Entity newEntity,
IJsonBackedObject payload,
ICallback<Entity> callback) |
IEntityWithReferenceRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic EntityWithReferenceRequest(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 post(Entity newEntity, IJsonBackedObject payload, ICallback<Entity> callback)
post in interface IEntityWithReferenceRequestpublic Entity post(Entity newEntity, IJsonBackedObject payload) throws ClientException
post in interface IEntityWithReferenceRequestClientExceptionpublic void get(ICallback<Entity> callback)
get in interface IEntityWithReferenceRequestpublic Entity get() throws ClientException
get in interface IEntityWithReferenceRequestClientExceptionpublic void delete(ICallback<Entity> callback)
delete in interface IEntityWithReferenceRequestpublic void delete()
throws ClientException
delete in interface IEntityWithReferenceRequestClientExceptionpublic void patch(Entity sourceEntity, ICallback<Entity> callback)
patch in interface IEntityWithReferenceRequestpublic Entity patch(Entity sourceEntity) throws ClientException
patch in interface IEntityWithReferenceRequestClientExceptionpublic IEntityWithReferenceRequest select(java.lang.String value)
select in interface IEntityWithReferenceRequestvalue - the select clausepublic IEntityWithReferenceRequest expand(java.lang.String value)
expand in interface IEntityWithReferenceRequestvalue - the expand clause