public class

ConfigurableJasperReportsView

extends AbstractJasperReportsSingleFormatView
java.lang.Object
   ↳ org.springframework.context.support.ApplicationObjectSupport
     ↳ org.springframework.web.context.support.WebApplicationObjectSupport
       ↳ org.springframework.web.servlet.view.AbstractView
         ↳ org.springframework.web.servlet.view.AbstractUrlBasedView
           ↳ org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
             ↳ org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
               ↳ org.springframework.web.servlet.view.jasperreports.ConfigurableJasperReportsView

Class Overview

Configurable JasperReports View, allowing to specify the JasperReports exporter to be specified through bean properties rather than through the view class name.

Summary

[Expand]
Inherited Constants
From class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
From class org.springframework.web.servlet.view.AbstractView
[Expand]
Inherited Fields
From class org.springframework.context.support.ApplicationObjectSupport
From interface org.springframework.web.servlet.View
Public Constructors
ConfigurableJasperReportsView()
Public Methods
void setExporterClass(Class<? extends 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 Methods
JRExporter createExporter()
Returns a new instance of the specified JRExporter class.
void onInit()
Checks that the exporterClass property is specified.
boolean useWriter()
Indicates how the JRExporter should render its data.
[Expand]
Inherited Methods
From class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
From class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
From class org.springframework.web.servlet.view.AbstractUrlBasedView
From class org.springframework.web.servlet.view.AbstractView
From class org.springframework.web.context.support.WebApplicationObjectSupport
From class org.springframework.context.support.ApplicationObjectSupport
From class java.lang.Object
From interface org.springframework.beans.factory.BeanNameAware
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.ApplicationContextAware
From interface org.springframework.web.context.ServletContextAware
From interface org.springframework.web.servlet.View

Public Constructors

public ConfigurableJasperReportsView ()

Public Methods

public void setExporterClass (Class<? extends JRExporter> exporterClass)

Set the 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)

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). Default is true.

Protected Methods

protected JRExporter createExporter ()

Returns a new instance of the specified JRExporter class.

protected void onInit ()

Checks that the exporterClass property is specified.

protected boolean useWriter ()

Indicates how the JRExporter should render its data.