Class SimpleJasperPrintAccessor
- java.lang.Object
-
- net.sf.jasperreports.web.servlets.SimpleJasperPrintAccessor
-
- All Implemented Interfaces:
Serializable
,JasperPrintAccessor
public class SimpleJasperPrintAccessor extends Object implements JasperPrintAccessor, Serializable
Generated report accessor used for fully generated reports.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.web.servlets.JasperPrintAccessor
REPORT_CONTEXT_PARAMETER_JASPER_PRINT_ACCESSOR
-
-
Constructor Summary
Constructors Constructor Description SimpleJasperPrintAccessor(JasperPrint jasperPrint)
Create a report accessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JasperPrint
getFinalJasperPrint()
Returns the generated report, ensuring before that the report generation has ended.JasperPrint
getJasperPrint()
Returns the generated report.ReportExecutionStatus
getReportStatus()
Returns the status of the report execution.ReportPageStatus
pageStatus(int pageIdx, Long pageTimestamp)
Ensures that a page is available in the generated report.
-
-
-
Constructor Detail
-
SimpleJasperPrintAccessor
public SimpleJasperPrintAccessor(JasperPrint jasperPrint)
Create a report accessor.- Parameters:
jasperPrint
- the generated report
-
-
Method Detail
-
pageStatus
public ReportPageStatus pageStatus(int pageIdx, Long pageTimestamp)
Description copied from interface:JasperPrintAccessor
Ensures that a page is available in the generated report.- Specified by:
pageStatus
in interfaceJasperPrintAccessor
- Parameters:
pageIdx
- the page index- Returns:
- the status of the requested page
-
getJasperPrint
public JasperPrint getJasperPrint()
Description copied from interface:JasperPrintAccessor
Returns the generated report.- Specified by:
getJasperPrint
in interfaceJasperPrintAccessor
- Returns:
- the generated report
-
getFinalJasperPrint
public JasperPrint getFinalJasperPrint()
Description copied from interface:JasperPrintAccessor
Returns the generated report, ensuring before that the report generation has ended.- Specified by:
getFinalJasperPrint
in interfaceJasperPrintAccessor
- Returns:
- the final generated report
-
getReportStatus
public ReportExecutionStatus getReportStatus()
Description copied from interface:JasperPrintAccessor
Returns the status of the report execution.- Specified by:
getReportStatus
in interfaceJasperPrintAccessor
- Returns:
- the status of the report execution
-
-