public class EntityReferenceRequest extends BaseRequest implements IEntityReferenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
EntityReferenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Entity
|
| Modifier and Type | Method and Description |
|---|---|
Entity |
delete() |
void |
delete(ICallback<Entity> callback) |
IEntityReferenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Entity |
put(Entity srcEntity)
Puts the Entity
|
void |
put(Entity srcEntity,
ICallback<Entity> callback)
Puts the Entity
|
IEntityReferenceRequest |
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 EntityReferenceRequest(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 delete(ICallback<Entity> callback)
delete in interface IEntityReferenceRequestpublic Entity delete() throws ClientException
delete in interface IEntityReferenceRequestClientExceptionpublic IEntityReferenceRequest select(java.lang.String value)
select in interface IEntityReferenceRequestvalue - the select clausepublic IEntityReferenceRequest expand(java.lang.String value)
expand in interface IEntityReferenceRequestvalue - the expand clausepublic void put(Entity srcEntity, ICallback<Entity> callback)
put in interface IEntityReferenceRequestsrcEntity - the Entity reference to PUTcallback - the callback to be called after success or failurepublic Entity put(Entity srcEntity) throws ClientException
put in interface IEntityReferenceRequestsrcEntity - the Entity reference to PUTClientException - an exception occurs if there was an error while the request was sent