com.jrefinery.report.ext.demo
Class DefaultPageableReportServletWorker
java.lang.Object
|
+--com.jrefinery.report.ext.demo.AbstractReportServletWorker
|
+--com.jrefinery.report.ext.demo.AbstractPageableReportServletWorker
|
+--com.jrefinery.report.ext.demo.DefaultPageableReportServletWorker
- public class DefaultPageableReportServletWorker
- extends AbstractPageableReportServletWorker
A report servlet worker, which is able to load report from a given URL and
to assign a provided tablemodel to the report. This servlet worker should be
used to process report for the pageable output targets.
This implementation should handle most reporting cases. If your report needs
extra initializations, override createReport
.
- Author:
- Thomas Morgner
Method Summary |
protected com.jrefinery.report.JFreeReport |
createReport()
Parses the report and returns the fully initialized report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPageableReportServletWorker
public DefaultPageableReportServletWorker(javax.servlet.http.HttpSession session,
java.net.URL report,
TableModelProvider data)
- Creates a default implementation for the pageable report servlet worker. This
implementation loads the report from the given URL and assignes the given
tablemodel to the generated report definition.
- Parameters:
report
- the url of the report definition.data
- the tablemodel that should be used for the reporting.session
- the current session, or null, if no session handling should be used.
createReport
protected com.jrefinery.report.JFreeReport createReport()
throws com.jrefinery.report.ReportInitialisationException
- Parses the report and returns the fully initialized report. A data model is
already assigned to the report.
- Specified by:
createReport
in class AbstractReportServletWorker
- Returns:
- the created report.
- Throws:
com.jrefinery.report.ReportInitialisationException
- if the report creation failed.