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 JasperPrintgetFinalJasperPrint()Returns the generated report, ensuring before that the report generation has ended.JasperPrintgetJasperPrint()Returns the generated report.ReportExecutionStatusgetReportStatus()Returns the status of the report execution.ReportPageStatuspageStatus(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:JasperPrintAccessorEnsures that a page is available in the generated report.- Specified by:
pageStatusin interfaceJasperPrintAccessor- Parameters:
pageIdx- the page index- Returns:
- the status of the requested page
-
getJasperPrint
public JasperPrint getJasperPrint()
Description copied from interface:JasperPrintAccessorReturns the generated report.- Specified by:
getJasperPrintin interfaceJasperPrintAccessor- Returns:
- the generated report
-
getFinalJasperPrint
public JasperPrint getFinalJasperPrint()
Description copied from interface:JasperPrintAccessorReturns the generated report, ensuring before that the report generation has ended.- Specified by:
getFinalJasperPrintin interfaceJasperPrintAccessor- Returns:
- the final generated report
-
getReportStatus
public ReportExecutionStatus getReportStatus()
Description copied from interface:JasperPrintAccessorReturns the status of the report execution.- Specified by:
getReportStatusin interfaceJasperPrintAccessor- Returns:
- the status of the report execution
-
-