public interface IEndpointRequest extends IHttpRequest
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Endpoint> callback)
Delete this item from the service
|
IEndpointRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Endpoint |
get()
Gets the Endpoint from the service
|
void |
get(ICallback<? super Endpoint> callback)
Gets the Endpoint from the service
|
Endpoint |
patch(Endpoint sourceEndpoint)
Patches this Endpoint with a source
|
void |
patch(Endpoint sourceEndpoint,
ICallback<? super Endpoint> callback)
Patches this Endpoint with a source
|
Endpoint |
post(Endpoint newEndpoint)
Posts a Endpoint with a new object
|
void |
post(Endpoint newEndpoint,
ICallback<? super Endpoint> callback)
Posts a Endpoint with a new object
|
Endpoint |
put(Endpoint newEndpoint)
Posts a Endpoint with a new object
|
void |
put(Endpoint newEndpoint,
ICallback<? super Endpoint> callback)
Posts a Endpoint with a new object
|
IEndpointRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
void get(ICallback<? super Endpoint> callback)
callback
- the callback to be called after success or failureEndpoint get() throws ClientException
ClientException
- this exception occurs if the request was unable to complete for any reasonvoid delete(ICallback<? super Endpoint> callback)
callback
- the callback when the deletion action has completedvoid delete() throws ClientException
ClientException
- if there was an exception during the delete operationvoid patch(Endpoint sourceEndpoint, ICallback<? super Endpoint> callback)
sourceEndpoint
- the source object with updatescallback
- the callback to be called after success or failureEndpoint patch(Endpoint sourceEndpoint) throws ClientException
sourceEndpoint
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonvoid post(Endpoint newEndpoint, ICallback<? super Endpoint> callback)
newEndpoint
- the new object to createcallback
- the callback to be called after success or failureEndpoint post(Endpoint newEndpoint) throws ClientException
newEndpoint
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonvoid put(Endpoint newEndpoint, ICallback<? super Endpoint> callback)
newEndpoint
- the object to create/updatecallback
- the callback to be called after success or failureEndpoint put(Endpoint newEndpoint) throws ClientException
newEndpoint
- the object to create/updateClientException
- this exception occurs if the request was unable to complete for any reasonIEndpointRequest select(java.lang.String value)
value
- the select clauseIEndpointRequest expand(java.lang.String value)
value
- the expand clause