public class IppProxyHandler extends IppHandler
| Constructor and Description |
|---|
IppProxyHandler(java.net.URI cupsURI)
Instantiates a new Cups client.
|
| Modifier and Type | Method and Description |
|---|---|
IppResponse |
cancelJob(java.net.URI printerURI,
int jobId)
Cancels a (created) job.
|
IppResponse |
createJob(java.net.URI printerURI)
Creates a new job.
|
java.net.URI |
getForwardURI()
Gets the URI to which the requests are forwared to..
|
IppResponse |
getJobs(java.net.URI printerURI)
Gets all jobs of a printer.
|
IppResponse |
getPrinterAttributes(java.net.URI printerURI)
Sends a get-printer-attributes to CUPS.
|
IppResponse |
printJob(java.net.URI printerURI,
java.nio.file.Path path)
Sends a print job to the printer.
|
IppResponse |
send(IppRequest ippRequest)
Sends an IPP request to a CUPS server.
|
IppResponse |
sendDocument(java.net.URI printerURI,
java.nio.file.Path path,
int jobId,
boolean lastDocument)
Sends one print job of a multiple document to the printer
|
java.lang.String |
toString() |
public IppProxyHandler(java.net.URI cupsURI)
cupsURI - the CUPS URIpublic java.net.URI getForwardURI()
public IppResponse printJob(java.net.URI printerURI, java.nio.file.Path path)
printJob in class IppHandlerprinterURI - printer URIpath - file to be printedpublic IppResponse getJobs(java.net.URI printerURI)
getJobs in class IppHandlerprinterURI - printer URIpublic IppResponse createJob(java.net.URI printerURI)
createJob in class IppHandlerprinterURI - printer URIpublic IppResponse sendDocument(java.net.URI printerURI, java.nio.file.Path path, int jobId, boolean lastDocument)
sendDocument in class IppHandlerprinterURI - printer URIpath - file to be printedjobId - the job idlastDocument - if it is the last documentpublic IppResponse cancelJob(java.net.URI printerURI, int jobId)
cancelJob in class IppHandlerprinterURI - printer URIjobId - the job idpublic IppResponse getPrinterAttributes(java.net.URI printerURI)
getPrinterAttributes in class IppHandlerprinterURI - printer URIpublic IppResponse send(IppRequest ippRequest)
IppHandlerIppResponse. But in some case (like the
get-printers operation the answer is returned as HTML page.send in class IppHandlerippRequest - the ipp requestpublic java.lang.String toString()
toString in class IppHandlerCopyright © 2018–2020. All rights reserved.