com.groiss.reporting.export
Class DownloadExporter
java.lang.Object
com.groiss.reporting.export.HTMLExporter
com.groiss.reporting.export.DownloadExporter
- All Implemented Interfaces:
- ReportingExporter, Public
public abstract class DownloadExporter
- extends HTMLExporter
- implements Public
Abstract subclass of HTMLExporter. Implement this class to provide export object as download.
Class provides methods to download
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadExporter
public DownloadExporter()
getResultTableModel
protected TableModel getResultTableModel(Query q,
ReportingTableModel tm)
- Description copied from class:
HTMLExporter
- Returns a tablemodel that the
TableRenderer may handle.
Overwrite this method if the exporter should display the results in html to ensure compatibility with toolbar actions
- Overrides:
getResultTableModel in class HTMLExporter
- Parameters:
q - The query objecttm - The Reporting results
return a Tablemodel implementation that the TableRenderer is able to transform to a TableContainer.
getData
protected Object getData(Query q,
ReportingTableModel tm)
- Overwrite this Method to generate downloadable Object.
- Parameters:
q - the Query Objecttm - the Reporting result table model
- Returns:
- a Object represanting the Download file/objet
download
public void download(HttpServletRequest req,
HttpServletResponse res)
- Implement this Mehthod to provide download.
Obtain a timestamp from request paramteter time and retrieve the queryid and the dataobject of the getData mehtod
HttpSession Paramters "queryid"+timestamp and "querydata"+timestamp
Note: Set the correct Contenttype and length of response.
- Parameters:
req - the download requestres - the resonse object
@enterprise 8.0.10078 Copyright © 2001-2011 Groiss Informatics GmbH. All Rights Reserved.