final
void
|
convertExporterParameters()
Converts the exporter parameters passed in by the user which may be keyed
by String s corresponding to the fully qualified name of the
JRExporterParameter into parameters which are keyed by
JRExporterParameter .
|
Object
|
convertParameterValue(JRExporterParameter parameter, Object value)
Convert the supplied parameter value into the actual type required by the
corresponding JRExporterParameter.
|
JRDataSource
|
convertReportData(Object value)
Convert the given report data value to a JRDataSource .
|
JRExporterParameter
|
convertToExporterParameter(String fqFieldName)
Convert the given fully qualified field name to a corresponding
JRExporterParameter instance.
|
JRDataSource
|
createReport(JRDataSourceProvider provider)
Create a report using the given provider.
|
void
|
exposeLocalizationContext(Map<String, Object> model, HttpServletRequest request)
Expose current Spring-managed Locale and MessageSource to JasperReports i18n
($R expressions etc).
|
JasperPrint
|
fillReport(Map<String, Object> model)
Create a populated JasperPrint instance from the configured
JasperReport instance.
|
Map<JRExporterParameter, Object>
|
getConvertedExporterParameters()
Allows subclasses to retrieve the converted exporter parameters.
|
JRExporterParameter
|
getExporterParameter(Object parameter)
Return a JRExporterParameter for the given parameter object,
converting it from a String if necessary.
|
Map<?, ?>
|
getExporterParameters()
Return the exporter parameters that this view uses, if any.
|
DataSource
|
getJdbcDataSource()
Return the javax.sql.DataSource that this view uses, if any.
|
JasperReport
|
getReport()
Determine the JasperReport to fill.
|
JRDataSource
|
getReportData(Map<String, Object> model)
Create an appropriate JRDataSource for passed-in report data.
|
Class[]
|
getReportDataTypes()
Return the value types that can be converted to a JRDataSource ,
in prioritized order.
|
final
void
|
initApplicationContext()
Checks to see that a valid report file URL is supplied in the
configuration.
|
boolean
|
isUrlRequired()
JasperReports views do not strictly required a 'url' value.
|
JasperReport
|
loadReport()
Load the main JasperReport from the specified Resource .
|
final
JasperReport
|
loadReport(Resource resource)
Loads a JasperReport from the specified Resource .
|
void
|
onInit()
Subclasses can override this to add some custom initialization logic.
|
void
|
postProcessReport(JasperPrint populatedReport, Map<String, Object> model)
Template method to be overridden for custom post-processing of the
populated report.
|
void
|
renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response)
|
abstract
void
|
renderReport(JasperPrint populatedReport, Map<String, Object> model, HttpServletResponse response)
Subclasses should implement this method to perform the actual rendering process.
|
void
|
setConvertedExporterParameters(Map<JRExporterParameter, Object> convertedExporterParameters)
Allows subclasses to populate the converted exporter parameters.
|
void
|
setExporterParameters(Map<?, ?> parameters)
Set the exporter parameters that should be used when rendering a view.
|
void
|
setHeaders(Properties headers)
Specify the set of headers that are included in each of response.
|
void
|
setJdbcDataSource(DataSource jdbcDataSource)
Specify the javax.sql.DataSource to use for reports with
embedded SQL statements.
|
void
|
setReportDataKey(String reportDataKey)
Set the name of the model attribute that represents the report data.
|
void
|
setSubReportDataKeys(String[] subReportDataKeys)
Set the list of names corresponding to the model parameters that will contain
data source objects for use in sub-reports.
|
void
|
setSubReportUrls(Properties subReports)
Specify resource paths which must be loaded as instances of
JasperReport and passed to the JasperReports engine for
rendering as sub-reports, under the same keys as in this mapping.
|