|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.web.servlets.AsyncJasperPrintAccessor
public class AsyncJasperPrintAccessor
Generated report accessor used for asynchronous report executions that publishes pages before the entire report has been generated.
Constructor Summary | |
---|---|
AsyncJasperPrintAccessor(FillHandle fillHandle)
Create a report accessor. |
Method Summary | |
---|---|
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. |
protected void |
lock()
|
void |
pageGenerated(JasperPrint jasperPrint,
int pageIndex)
Called when a report page has been generated. |
ReportPageStatus |
pageStatus(int pageIdx,
java.lang.Long pageTimestamp)
Ensures that a page is available in the generated report. |
void |
pageUpdated(JasperPrint jasperPrint,
int pageIndex)
Called when a previously generated page has been updated, usually by evaluating a delayed element. |
void |
reportCancelled()
Called when the report is cancelled. |
void |
reportFillError(java.lang.Throwable t)
Called when the filling process exits in error. |
void |
reportFinished(JasperPrint jasperPrint)
Called when the report filling is done. |
protected void |
unlock()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncJasperPrintAccessor(FillHandle fillHandle)
fillHandle
- the asynchronous fill handle used by this accessorMethod Detail |
---|
protected void lock()
protected void unlock()
public ReportPageStatus pageStatus(int pageIdx, java.lang.Long pageTimestamp)
JasperPrintAccessor
pageStatus
in interface JasperPrintAccessor
pageIdx
- the page index
public JasperPrint getJasperPrint()
JasperPrintAccessor
getJasperPrint
in interface JasperPrintAccessor
public JasperPrint getFinalJasperPrint()
JasperPrintAccessor
getFinalJasperPrint
in interface JasperPrintAccessor
public void reportFinished(JasperPrint jasperPrint)
AsynchronousFilllListener
reportFinished
in interface AsynchronousFilllListener
jasperPrint
- the filled reportpublic void reportCancelled()
AsynchronousFilllListener
reportCancelled
in interface AsynchronousFilllListener
public void reportFillError(java.lang.Throwable t)
AsynchronousFilllListener
reportFillError
in interface AsynchronousFilllListener
t
- the exceptionpublic void pageGenerated(JasperPrint jasperPrint, int pageIndex)
FillListener
pageGenerated
in interface FillListener
jasperPrint
- the report that is currently generatingpageIndex
- the index of the page that has been generatedpublic void pageUpdated(JasperPrint jasperPrint, int pageIndex)
FillListener
pageUpdated
in interface FillListener
jasperPrint
- the report that is currently generatingpageIndex
- the index of the page that has been updatedpublic ReportExecutionStatus getReportStatus()
JasperPrintAccessor
getReportStatus
in interface JasperPrintAccessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |