You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the cups server end and it is possible to access the printer status over the browser. This is what is seen:
I wanted to know if this API [ public PrinterStateEnum getState() ] is fully functional and tested for the cups jar version 0.7.8, and if so, why it may be returning null in the code, even though other API methods like CupsPrinter::getName() and CupsPrinter::getURL() are working fine
The text was updated successfully, but these errors were encountered:
I am using cups 0.7.8 jar, and want to check the printer status by using the following method of the cups API
public PrinterStateEnum getState()
The code is as follows:
String cupsHost = rb.getString("cups.server.hostname");
String cupsPort = rb.getString("cups.server.port");
CupsClient client = new CupsClient(cupsHost, new Integer(cupsPort));
List printers = client.getPrinters();
logger.info("Found printers: " + printers.toString());
for (CupsPrinter printer : printers) {
logger.info("printer available: " + printer.getName());
PrinterStateEnum printerState = printer.getState();
}
However the getState() method is returning null
I checked the cups server end and it is possible to access the printer status over the browser. This is what is seen:
I wanted to know if this API [ public PrinterStateEnum getState() ] is fully functional and tested for the cups jar version 0.7.8, and if so, why it may be returning null in the code, even though other API methods like CupsPrinter::getName() and CupsPrinter::getURL() are working fine
The text was updated successfully, but these errors were encountered: