public class PrinterBaseRequest extends BaseRequest implements IPrinterBaseRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
PrinterBaseRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the PrinterBase
|
PrinterBaseRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends PrinterBase> responseClass)
The request for the PrinterBase
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<? super PrinterBase> callback)
Delete this item from the service
|
IPrinterBaseRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
PrinterBase |
get()
Gets the PrinterBase from the service
|
void |
get(ICallback<? super PrinterBase> callback)
Gets the PrinterBase from the service
|
PrinterBase |
patch(PrinterBase sourcePrinterBase)
Patches this PrinterBase with a source
|
void |
patch(PrinterBase sourcePrinterBase,
ICallback<? super PrinterBase> callback)
Patches this PrinterBase with a source
|
PrinterBase |
post(PrinterBase newPrinterBase)
Creates a PrinterBase with a new object
|
void |
post(PrinterBase newPrinterBase,
ICallback<? super PrinterBase> callback)
Creates a PrinterBase with a new object
|
PrinterBase |
put(PrinterBase newPrinterBase)
Creates a PrinterBase with a new object
|
void |
put(PrinterBase newPrinterBase,
ICallback<? super PrinterBase> callback)
Creates a PrinterBase with a new object
|
IPrinterBaseRequest |
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 PrinterBaseRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends PrinterBase> responseClass)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestresponseClass - the class of the responsepublic PrinterBaseRequest(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 PrinterBase> callback)
get in interface IPrinterBaseRequestcallback - the callback to be called after success or failurepublic PrinterBase get() throws ClientException
get in interface IPrinterBaseRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<? super PrinterBase> callback)
delete in interface IPrinterBaseRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IPrinterBaseRequestClientException - if there was an exception during the delete operationpublic void patch(PrinterBase sourcePrinterBase, ICallback<? super PrinterBase> callback)
patch in interface IPrinterBaseRequestsourcePrinterBase - the source object with updatescallback - the callback to be called after success or failurepublic PrinterBase patch(PrinterBase sourcePrinterBase) throws ClientException
patch in interface IPrinterBaseRequestsourcePrinterBase - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(PrinterBase newPrinterBase, ICallback<? super PrinterBase> callback)
post in interface IPrinterBaseRequestnewPrinterBase - the new object to createcallback - the callback to be called after success or failurepublic PrinterBase post(PrinterBase newPrinterBase) throws ClientException
post in interface IPrinterBaseRequestnewPrinterBase - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic void put(PrinterBase newPrinterBase, ICallback<? super PrinterBase> callback)
put in interface IPrinterBaseRequestnewPrinterBase - the object to create/updatecallback - the callback to be called after success or failurepublic PrinterBase put(PrinterBase newPrinterBase) throws ClientException
put in interface IPrinterBaseRequestnewPrinterBase - the object to create/updateClientException - this exception occurs if the request was unable to complete for any reasonpublic IPrinterBaseRequest select(java.lang.String value)
select in interface IPrinterBaseRequestvalue - the select clausepublic IPrinterBaseRequest expand(java.lang.String value)
expand in interface IPrinterBaseRequestvalue - the expand clause