public class PrinterReferenceRequest extends BaseRequest implements IPrinterReferenceRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
PrinterReferenceRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the Printer
|
| Modifier and Type | Method and Description |
|---|---|
Printer |
delete() |
void |
delete(ICallback<? super Printer> callback) |
IPrinterReferenceRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
Printer |
put(Printer srcPrinter)
Puts the Printer
|
void |
put(Printer srcPrinter,
ICallback<? super Printer> callback)
Puts the Printer
|
IPrinterReferenceRequest |
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 PrinterReferenceRequest(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<? super Printer> callback)
delete in interface IPrinterReferenceRequestpublic Printer delete() throws ClientException
delete in interface IPrinterReferenceRequestClientExceptionpublic IPrinterReferenceRequest select(java.lang.String value)
select in interface IPrinterReferenceRequestvalue - the select clausepublic IPrinterReferenceRequest expand(java.lang.String value)
expand in interface IPrinterReferenceRequestvalue - the expand clausepublic void put(Printer srcPrinter, ICallback<? super Printer> callback)
put in interface IPrinterReferenceRequestsrcPrinter - the Printer reference to PUTcallback - the callback to be called after success or failurepublic Printer put(Printer srcPrinter) throws ClientException
put in interface IPrinterReferenceRequestsrcPrinter - the Printer reference to PUTClientException - an exception occurs if there was an error while the request was sent