public class EndpointWithReferenceRequest extends BaseRequest implements IEndpointWithReferenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
EndpointWithReferenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Endpoint
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
void |
delete(ICallback<? super Endpoint> callback) |
IEndpointWithReferenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Endpoint |
get() |
void |
get(ICallback<? super Endpoint> callback) |
Endpoint |
patch(Endpoint sourceEndpoint) |
void |
patch(Endpoint sourceEndpoint,
ICallback<? super Endpoint> callback) |
Endpoint |
post(Endpoint newEndpoint,
IJsonBackedObject payload) |
void |
post(Endpoint newEndpoint,
IJsonBackedObject payload,
ICallback<? super Endpoint> callback) |
IEndpointWithReferenceRequest |
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, withHttpMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public EndpointWithReferenceRequest(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(Endpoint newEndpoint, IJsonBackedObject payload, ICallback<? super Endpoint> callback)
post
in interface IEndpointWithReferenceRequest
public Endpoint post(Endpoint newEndpoint, IJsonBackedObject payload) throws ClientException
post
in interface IEndpointWithReferenceRequest
ClientException
public void get(ICallback<? super Endpoint> callback)
get
in interface IEndpointWithReferenceRequest
public Endpoint get() throws ClientException
get
in interface IEndpointWithReferenceRequest
ClientException
public void delete(ICallback<? super Endpoint> callback)
delete
in interface IEndpointWithReferenceRequest
public void delete() throws ClientException
delete
in interface IEndpointWithReferenceRequest
ClientException
public void patch(Endpoint sourceEndpoint, ICallback<? super Endpoint> callback)
patch
in interface IEndpointWithReferenceRequest
public Endpoint patch(Endpoint sourceEndpoint) throws ClientException
patch
in interface IEndpointWithReferenceRequest
ClientException
public IEndpointWithReferenceRequest select(java.lang.String value)
select
in interface IEndpointWithReferenceRequest
value
- the select clausepublic IEndpointWithReferenceRequest expand(java.lang.String value)
expand
in interface IEndpointWithReferenceRequest
value
- the expand clause