public class ConfigurableJasperReportsView extends AbstractJasperReportsSingleFormatView
JasperReportsCsvView,
JasperReportsHtmlView,
JasperReportsPdfView,
JasperReportsXlsViewCONTENT_DISPOSITION_INLINE, HEADER_CONTENT_DISPOSITIONDEFAULT_CONTENT_TYPEPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE| Constructor and Description |
|---|
ConfigurableJasperReportsView() |
| Modifier and Type | Method and Description |
|---|---|
protected net.sf.jasperreports.engine.JRExporter |
createExporter()
Returns a new instance of the specified
JRExporter class. |
protected void |
onInit()
Checks that the
exporterClass property is specified. |
void |
setExporterClass(Class<? extends net.sf.jasperreports.engine.JRExporter> exporterClass)
Set the
JRExporter implementation Class to use. |
void |
setUseWriter(boolean useWriter)
Specifies whether or not the
JRExporter writes to the PrintWriter
of the associated with the request (true) or whether it writes directly to the
InputStream of the request (false). |
protected boolean |
useWriter()
Indicates how the
JRExporter should render its data. |
generatesDownloadContent, renderReport, renderReportUsingOutputStream, renderReportUsingWriterconvertExporterParameters, convertParameterValue, convertReportData, convertToExporterParameter, createReport, exposeLocalizationContext, fillReport, getConvertedExporterParameters, getExporterParameter, getExporterParameters, getJdbcDataSource, getReport, getReportData, getReportDataTypes, initApplicationContext, isUrlRequired, loadReport, loadReport, postProcessReport, renderMergedOutputModel, setConvertedExporterParameters, setExporterParameters, setHeaders, setJdbcDataSource, setReportDataKey, setSubReportDataKeys, setSubReportUrlsafterPropertiesSet, checkResource, getUrl, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic void setExporterClass(Class<? extends net.sf.jasperreports.engine.JRExporter> exporterClass)
JRExporter implementation Class to use. Throws
IllegalArgumentException if the Class doesn't implement
JRExporter. Required setting, as it does not have a default.public void setUseWriter(boolean useWriter)
JRExporter writes to the PrintWriter
of the associated with the request (true) or whether it writes directly to the
InputStream of the request (false). Default is true.protected void onInit()
exporterClass property is specified.onInit in class AbstractJasperReportsViewAbstractJasperReportsView.initApplicationContext()protected net.sf.jasperreports.engine.JRExporter createExporter()
JRExporter class.createExporter in class AbstractJasperReportsSingleFormatViewsetExporterClass(Class),
BeanUtils.instantiateClass(Class)protected boolean useWriter()
JRExporter should render its data.useWriter in class AbstractJasperReportsSingleFormatViewsetUseWriter(boolean)