public class JasperReportsHtmlView extends AbstractJasperReportsSingleFormatView
AbstractJasperReportsSingleFormatView
that renders report results in HTML format.CONTENT_DISPOSITION_INLINE, HEADER_CONTENT_DISPOSITION
DEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
Constructor and Description |
---|
JasperReportsHtmlView() |
Modifier and Type | Method and Description |
---|---|
protected 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, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
protected 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
javax.servlet.ServletResponse#getWriter()
,
javax.servlet.ServletResponse#getOutputStream()