Style Intelligence v12.0

inetsoft.report
Class HttpPrinter

java.lang.Object
  extended by inetsoft.report.HttpPrinter
All Implemented Interfaces:
Serializable

public class HttpPrinter
extends Object
implements Serializable

This class can be used by an applet to obtain a PDFPrinter to print a report. The report is sent to the web server where the applet is originated. The report can be displayed by obtaining the PDF file URL from this handler.

    HttpPrinter handler = new HttpPrinter(getDocumentBase(),
                                 "/servlet/PDFServlet");
    report.print(handler.getPrintJob());
    getAppletContext().showDocument(handler.getURL());
 

See Also:
Serialized Form

Constructor Summary
HttpPrinter(String spec)
          Create a handler from an URL string.
HttpPrinter(URL context, String spec)
          Create a handler from an URL string.
 
Method Summary
 PDFPrinter getPrinter()
          Get the PDFPrinter object that actually generates the report output.
 PrintJob getPrintJob()
          Get the PDFPrinter object to print to the remove server.
 URL getURL()
          Get the URL of the PDF output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpPrinter

public HttpPrinter(String spec)
            throws IOException
Create a handler from an URL string. The URL must point to the PDFServlet servlet or the pdfprint.pl CGI script.

Parameters:
spec - URL to the PDF servlet or cgi.
Throws:
IOException

HttpPrinter

public HttpPrinter(URL context,
                   String spec)
            throws IOException
Create a handler from an URL string. The URL must point to the PDFServlet servlet or the pdfprint.pl CGI script.

Parameters:
context - applet context.
spec - URL to the PDF servlet or cgi.
Throws:
IOException
Method Detail

getPrintJob

public PrintJob getPrintJob()
                     throws IOException
Get the PDFPrinter object to print to the remove server.

Throws:
IOException

getPrinter

public PDFPrinter getPrinter()
                      throws IOException
Get the PDFPrinter object that actually generates the report output.

Returns:
PDFPrinter.
Throws:
IOException

getURL

public URL getURL()
Get the URL of the PDF output.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.