com.ibm.as400.util.reportwriter.processor
Class JSPReportProcessor

java.lang.Object
  |
  +--com.ibm.as400.util.reportwriter.processor.ReportProcessor
        |
        +--com.ibm.as400.util.reportwriter.processor.JSPReportProcessor
All Implemented Interfaces:
java.io.Serializable

public class JSPReportProcessor
extends ReportProcessor
implements java.io.Serializable

The JSPReportProcessor class is used to obtain a Java Server Page (tm) or a Java Servlet from a given URL and create a document/report from the contents. The Java Server Page or Java Servlet must provide the document data and include XSL formatting objects (conforming to the Extensible Stylesheet Language Specification) to format the content of the document. Both the output context and the JSP input data source must be specified before any pages of the report can be generated.

See Also:
Serialized Form

Fields inherited from class com.ibm.as400.util.reportwriter.processor.ReportProcessor
context_
 
Constructor Summary
JSPReportProcessor()
          Constructs a JSPReportProcessor object.
JSPReportProcessor(com.ibm.xsl.composer.framework.Context context)
          Constructs a XSLReportProcessor object.
 
Method Summary
 void processReport()
          Processes the report using the JSP input source and context previously specified.
 void setTemplate(java.net.URL jspURL)
          Sets the template to be jspURL, the Uniform Resource Locator (URL) for the Java Server Page.
 
Methods inherited from class com.ibm.as400.util.reportwriter.processor.ReportProcessor
setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSPReportProcessor

public JSPReportProcessor()
Constructs a JSPReportProcessor object. A call to setContext must be done after calling this method.

JSPReportProcessor

public JSPReportProcessor(com.ibm.xsl.composer.framework.Context context)
                   throws java.lang.NullPointerException
Constructs a XSLReportProcessor object.
Parameters:
context - The context to use for creating the report pages.
Throws:
java.lang.NullPointerException - If the context is null.
Method Detail

processReport

public void processReport()
                   throws java.io.IOException,
                          java.lang.NullPointerException,
                          org.xml.sax.SAXException,
                          org.w3c.dom.DOMException
Processes the report using the JSP input source and context previously specified.
Overrides:
processReport in class ReportProcessor
Throws:
java.io.IOException - If an error occurs while accessing the JSP file.
org.xml.sax.SAXException - If an error occurs while parsing/processing the data.
java.lang.NullPointerException - If the JSP source or context is null.
org.w3c.dom.DOMException - If an error occurs while parsing/processing the formatting object tree.

setTemplate

public void setTemplate(java.net.URL jspURL)
                 throws java.lang.NullPointerException
Sets the template to be jspURL, the Uniform Resource Locator (URL) for the Java Server Page.
Parameters:
jspURL - The URL representing the Java Server Page.
Throws:
java.lang.NullPointerException - If the JSP source is null.