org.springframework.web.servlet.view.jasperreports
Class ConfigurableJasperReportsView
java.lang.Object
   org.springframework.context.support.ApplicationObjectSupport
org.springframework.context.support.ApplicationObjectSupport
       org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
           org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractView
               org.springframework.web.servlet.view.AbstractUrlBasedView
org.springframework.web.servlet.view.AbstractUrlBasedView
                   org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
                       org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
                           org.springframework.web.servlet.view.jasperreports.ConfigurableJasperReportsView
org.springframework.web.servlet.view.jasperreports.ConfigurableJasperReportsView
- All Implemented Interfaces: 
- BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View
- public class ConfigurableJasperReportsView 
- extends AbstractJasperReportsSingleFormatView
Configurable JasperReports View, allowing to specify the JasperReports exporter
 to be specified through bean properties rather than through the view class name.
- Since:
- 2.0
- Author:
- Rob Harrop
- See Also:
- JasperReportsCsvView,- JasperReportsHtmlView,- JasperReportsPdfView,- JasperReportsXlsView
 
 
 
 
 
| Method Summary | 
| protected  net.sf.jasperreports.engine.JRExporter | createExporter()Returns a new instance of the specified
 JRExporterclass. | 
| protected  void | onInit()Checks that the
 exporterClassproperty is specified. | 
|  void | setExporterClass(Class exporterClass)Set the
 JRExporterimplementationClassto use. | 
|  void | setUseWriter(boolean useWriter)Specifies whether or not the
 JRExporterwrites to thePrintWriterof the associated with the request (true) or whether it writes directly to theInputStreamof the request (false). | 
| protected  boolean | useWriter()Indicates how the
 JRExportershould render its data. | 
 
 
| Methods inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView | 
| convertExporterParameters, convertParameterValue, convertReportData, convertToExporterParameter, createReport, exposeLocalizationContext, fillReport, getConvertedExporterParameters, getExporterParameter, getExporterParameters, getJdbcDataSource, getReport, getReportCompiler, getReportData, getReportDataTypes, initApplicationContext, isUrlRequired, loadReport, loadReport, postProcessReport, renderMergedOutputModel, setExporterParameters, setHeaders, setJdbcDataSource, setReportCompiler, setReportDataKey, setSubReportDataKeys, setSubReportUrls | 
 
 
| Methods inherited from class org.springframework.web.servlet.view.AbstractView | 
| addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, writeToResponse | 
 
 
 
 
ConfigurableJasperReportsView
public ConfigurableJasperReportsView()
setExporterClass
public void setExporterClass(Class exporterClass)
- Set the JRExporterimplementationClassto use. ThrowsIllegalArgumentExceptionif theClassdoesn't implementJRExporter. Required setting, as it does not have a default.
 
- 
 
setUseWriter
public void setUseWriter(boolean useWriter)
- Specifies whether or not the JRExporterwrites to thePrintWriterof the associated with the request (true) or whether it writes directly to theInputStreamof the request (false). Default istrue.
 
- 
 
onInit
protected void onInit()
- Checks that the exporterClassproperty is specified.
 
- 
- Overrides:
- onInitin class- AbstractJasperReportsView
 
- 
- See Also:
- AbstractJasperReportsView.initApplicationContext()
 
createExporter
protected net.sf.jasperreports.engine.JRExporter createExporter()
- Returns a new instance of the specified JRExporterclass.
 
- 
- Specified by:
- createExporterin class- AbstractJasperReportsSingleFormatView
 
- 
- See Also:
- setExporterClass(Class),- BeanUtils.instantiateClass(Class)
 
useWriter
protected boolean useWriter()
- Indicates how the JRExportershould render its data.
 
- 
- Specified by:
- useWriterin class- AbstractJasperReportsSingleFormatView
 
- 
- See Also:
- setUseWriter(boolean)
 
Copyright © 2002-2008 The Spring Framework.