站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

JasperReportsPdfView (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.web.servlet.view.jasperreports
Class JasperReportsPdfView

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.view.AbstractView
              extended by org.springframework.web.servlet.view.AbstractUrlBasedView
                  extended by org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
                      extended by org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
                          extended by org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView
All Implemented Interfaces:
BeanNameAware, InitializingBean, ApplicationContextAware, View

public class JasperReportsPdfView
extends AbstractJasperReportsSingleFormatView

Implementation of AbstractJasperReportsSingleFormatView that renders report results in PDF format.

Since:
1.1.3
Author:
Rob Harrop, Juergen Hoeller

Field Summary
 
Fields inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
CONTENT_DISPOSITION_INLINE, HEADER_CONTENT_DISPOSITION
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
JasperReportsPdfView()
           
 
Method Summary
protected  net.sf.jasperreports.engine.JRExporter createExporter()
          Create a JasperReports exporter for a specific output format, which will be used to render the report to the HTTP response.
protected  boolean useWriter()
          Return whether to use a java.io.Writer to write text content to the HTTP response.
 
Methods inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView
renderReport
 
Methods inherited from class org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsView
convertExporterParameters, convertReportData, convertToExporterParameter, exposeLocalizationContext, fillReport, getConvertedExporterParameters, getExporterParameter, getExporterParameters, getJdbcDataSource, getReport, getReportCompiler, getReportData, getReportDataTypes, initApplicationContext, postProcessReport, renderMergedOutputModel, setExporterParameters, setHeaders, setJdbcDataSource, setReportCompiler, setReportDataKey, setSubReportDataKeys, setSubReportUrls
 
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView
afterPropertiesSet, getUrl, setUrl, toString
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createRequestContext, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JasperReportsPdfView

public JasperReportsPdfView()
Method Detail

createExporter

protected net.sf.jasperreports.engine.JRExporter createExporter()
Description copied from class: AbstractJasperReportsSingleFormatView
Create a JasperReports exporter for a specific output format, which will be used to render the report to the HTTP response.

The useWriter method determines whether the output will be written as text or as binary content.

Specified by:
createExporter in class AbstractJasperReportsSingleFormatView
See Also:
AbstractJasperReportsSingleFormatView.useWriter()

useWriter

protected boolean useWriter()
Description copied from class: AbstractJasperReportsSingleFormatView
Return whether to use a java.io.Writer to write text content to the HTTP response. Else, a java.io.OutputStream will be used, to write binary content to the response.

Specified by:
useWriter in class AbstractJasperReportsSingleFormatView
See Also:
ServletResponse.getWriter(), ServletResponse.getOutputStream()


Copyright (c) 2002-2007 The Spring Framework Project.