public abstract class AbstractXlsxStreamingView extends AbstractXlsxView
For working with the workbook in subclasses, see Apache's POI site.
DEFAULT_CONTENT_TYPEloggerPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE| Constructor and Description |
|---|
AbstractXlsxStreamingView() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.poi.xssf.streaming.SXSSFWorkbook |
createWorkbook(Map<String,Object> model,
HttpServletRequest request)
This implementation creates a
SXSSFWorkbook for streaming the XLSX format. |
protected void |
renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook,
HttpServletResponse response)
This implementation disposes of the
SXSSFWorkbook when done with rendering. |
buildExcelDocument, generatesDownloadContent, renderMergedOutputModeladdStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContextprotected org.apache.poi.xssf.streaming.SXSSFWorkbook createWorkbook(Map<String,Object> model, HttpServletRequest request)
SXSSFWorkbook for streaming the XLSX format.createWorkbook in class AbstractXlsxViewmodel - the model Maprequest - current HTTP request (for taking the URL or headers into account)Workbook instanceprotected void renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook,
HttpServletResponse response)
throws IOException
SXSSFWorkbook when done with rendering.renderWorkbook in class AbstractXlsViewworkbook - the POI Workbook to renderresponse - current HTTP responseIOException - when thrown by I/O methods that we're delegating toSXSSFWorkbook.dispose()