public class PrintJob extends Operation
| Modifier | Constructor and Description |
|---|---|
|
PrintJob()
Instantiates an operation for 'print-job'.
|
protected |
PrintJob(IppOperations op)
This constructor is foreseen for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
IppResponse |
getIppResponse()
Gets the IPP response for the stored IPP request.
|
void |
setData(byte[] data)
Sets the data to be printed.
|
void |
setDocumentName(java.lang.String name)
Sets the document-name.
|
void |
setJobName(java.lang.String name)
Sets the job-name.
|
void |
validateRequest(IppRequest request)
Looks if the given request is valid.
|
createIppRequest, getAttribute, getIppRequest, getPrinterName, getPrinterURI, initPrinterAttributes, setCupsURI, setIppRequestId, setJobAttribute, setJobId, setJobState, setJobStateReasons, setOperationAttribute, setPrinterURI, toIPP, validateRequest, validateRequestpublic PrintJob()
protected PrintJob(IppOperations op)
op - e.g. IppOperations.PRINT_JOBpublic void setData(byte[] data)
data - print datapublic void setJobName(java.lang.String name)
name - job namepublic void setDocumentName(java.lang.String name)
name - document namepublic void validateRequest(IppRequest request)
ValidationException will be thrownvalidateRequest in class Operationrequest - IPP reqeustpublic IppResponse getIppResponse()
getIppResponse in class OperationCopyright © 2018–2020. All rights reserved.