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, setUseCaches
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
public 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 IEntityReferenceRequest
public Entity delete() throws ClientException
delete
in interface IEntityReferenceRequest
ClientException
public IEntityReferenceRequest select(java.lang.String value)
select
in interface IEntityReferenceRequest
value
- the select clausepublic IEntityReferenceRequest expand(java.lang.String value)
expand
in interface IEntityReferenceRequest
value
- the expand clausepublic void put(Entity srcEntity, ICallback<Entity> callback)
put
in interface IEntityReferenceRequest
srcEntity
- the Entity reference to PUTcallback
- the callback to be called after success or failurepublic Entity put(Entity srcEntity) throws ClientException
put
in interface IEntityReferenceRequest
srcEntity
- the Entity reference to PUTClientException
- an exception occurs if there was an error while the request was sent