public class JasperReportsXlsxView extends AbstractJasperReportsSingleFormatView
AbstractJasperReportsSingleFormatView
that renders report results in XLSX format.
This class is compatible with classic JasperReports releases back until 2.x.
As a consequence, it keeps using the JRExporter
API which got deprecated as of JasperReports 5.5.2 (early 2014).
CONTENT_DISPOSITION_INLINE, HEADER_CONTENT_DISPOSITION
DEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
Constructor and Description |
---|
JasperReportsXlsxView() |
Modifier and Type | Method and Description |
---|---|
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. |
generatesDownloadContent, renderReport, renderReportUsingOutputStream, renderReportUsingWriter
convertExporterParameters, convertParameterValue, convertReportData, convertToExporterParameter, createReport, exposeLocalizationContext, fillReport, getConvertedExporterParameters, getExporterParameter, getExporterParameters, getJdbcDataSource, getReport, getReportData, getReportDataTypes, initApplicationContext, isUrlRequired, loadReport, loadReport, onInit, postProcessReport, renderMergedOutputModel, setConvertedExporterParameters, setExporterParameters, setHeaders, setJdbcDataSource, setReportDataKey, setSubReportDataKeys, setSubReportUrls
afterPropertiesSet, checkResource, getUrl, setUrl, toString
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
protected net.sf.jasperreports.engine.JRExporter createExporter()
AbstractJasperReportsSingleFormatView
The useWriter
method determines whether the
output will be written as text or as binary content.
createExporter
in class AbstractJasperReportsSingleFormatView
AbstractJasperReportsSingleFormatView.useWriter()
protected boolean useWriter()
AbstractJasperReportsSingleFormatView
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.useWriter
in class AbstractJasperReportsSingleFormatView
ServletResponse.getWriter()
,
ServletResponse.getOutputStream()