public class PlaceRequest extends BaseRequest implements IPlaceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
PlaceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Place
|
PlaceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends Place> responseClass)
The request for the Place
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super Place> callback)
Delete this item from the service
|
IPlaceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Place |
get()
Gets the Place from the service
|
void |
get(ICallback<? super Place> callback)
Gets the Place from the service
|
Place |
patch(Place sourcePlace)
Patches this Place with a source
|
void |
patch(Place sourcePlace,
ICallback<? super Place> callback)
Patches this Place with a source
|
Place |
post(Place newPlace)
Creates a Place with a new object
|
void |
post(Place newPlace,
ICallback<? super Place> callback)
Creates a Place with a new object
|
Place |
put(Place newPlace)
Creates a Place with a new object
|
void |
put(Place newPlace,
ICallback<? super Place> callback)
Creates a Place with a new object
|
IPlaceRequest |
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, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic PlaceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends Place> responseClass)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestresponseClass - the class of the responsepublic PlaceRequest(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 get(ICallback<? super Place> callback)
get in interface IPlaceRequestcallback - the callback to be called after success or failurepublic Place get() throws ClientException
get in interface IPlaceRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super Place> callback)
delete in interface IPlaceRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IPlaceRequestClientException - if there was an exception during the delete operationpublic void patch(Place sourcePlace, ICallback<? super Place> callback)
patch in interface IPlaceRequestsourcePlace - the source object with updatescallback - the callback to be called after success or failurepublic Place patch(Place sourcePlace) throws ClientException
patch in interface IPlaceRequestsourcePlace - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(Place newPlace, ICallback<? super Place> callback)
post in interface IPlaceRequestnewPlace - the new object to createcallback - the callback to be called after success or failurepublic Place post(Place newPlace) throws ClientException
post in interface IPlaceRequestnewPlace - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(Place newPlace, ICallback<? super Place> callback)
put in interface IPlaceRequestnewPlace - the object to create/updatecallback - the callback to be called after success or failurepublic Place put(Place newPlace) throws ClientException
put in interface IPlaceRequestnewPlace - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IPlaceRequest select(java.lang.String value)
select in interface IPlaceRequestvalue - the select clausepublic IPlaceRequest expand(java.lang.String value)
expand in interface IPlaceRequestvalue - the expand clause