LoginHelp/GuideAbout TracPreferences
WikiBrowse SourceDownloads

Welcome to ippclient

Ippclient provides the client part of IPP written in Java. The client includes:

  • print job
  • request job parameters like job state
  • cancel job
  • request printer capabilities

The module is easily expandable using a data model defined by XML schemas. The data model is applied over the whole module and uses the same classes for request and response. The code snippets below demonstrates the main concept of ippclient:

Use the Setter methods for building a request:

   IppOperation ippOperation = new PrinterState();
   ((PrinterState) ippOperation).setPrinterAddress(uri);
   ((PrinterState) ippOperation).setUsername("anonymous");

Transform the data model of ippclient to a byte stream:

   IppOperationToByteBuffer itob = new IppOperationToByteBuffer(ippOperation);
   ByteBuffer outputBuf = itob.getByteStream();

Transform the byte stream of the printer back to the data model of ippclient:

   BytesToIppOperation btoi = new BytesToIppOperation(new PrinterState());
   IppOperation ippOperation = btoi.getIppOperation();

Get the printer state:

    if (((PrinterState) ippOperation).isSuccessfulOk()) {
        ((PrinterState) ippOperation).getPrinterState();

Note:The software is licensed under the the terms of the GNU Lesser General Public License. I'd like to thank the IT Services of the ETH Zurich for its release to the Open Source Community.

Current Release

  • ippclient Version 1.2.9




Wichtiger Hinweis:
Diese Website wird in älteren Versionen von Netscape ohne graphische Elemente dargestellt. Die Funktionalität der Website ist aber trotzdem gewährleistet. Wenn Sie diese Website regelmässig benutzen, empfehlen wir Ihnen, auf Ihrem Computer einen aktuellen Browser zu installieren. Weitere Informationen finden Sie auf
folgender Seite.

Important Note:
The content in this site is accessible to any browser or Internet device, however, some graphics will display correctly only in the newer versions of Netscape. To get the most out of our site we suggest you upgrade to the newer browser.
More information

© 2005 ETH Zürich | Imprint | 26.09.2007 | Version 0.12