|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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,
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(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 accessor| Method Detail |
|---|
protected void lock()
protected void unlock()
public ReportPageStatus pageStatus(int pageIdx,
Long pageTimestamp)
JasperPrintAccessor
pageStatus in interface JasperPrintAccessorpageIdx - the page index
public JasperPrint getJasperPrint()
JasperPrintAccessor
getJasperPrint in interface JasperPrintAccessorpublic JasperPrint getFinalJasperPrint()
JasperPrintAccessor
getFinalJasperPrint in interface JasperPrintAccessorpublic void reportFinished(JasperPrint jasperPrint)
AsynchronousFilllListener
reportFinished in interface AsynchronousFilllListenerjasperPrint - the filled reportpublic void reportCancelled()
AsynchronousFilllListener
reportCancelled in interface AsynchronousFilllListenerpublic void reportFillError(Throwable t)
AsynchronousFilllListener
reportFillError in interface AsynchronousFilllListenert - the exception
public void pageGenerated(JasperPrint jasperPrint,
int pageIndex)
FillListener
pageGenerated in interface FillListenerjasperPrint - the report that is currently generatingpageIndex - the index of the page that has been generated
public void pageUpdated(JasperPrint jasperPrint,
int pageIndex)
FillListener
pageUpdated in interface FillListenerjasperPrint - 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 | |||||||||