public abstract class AbstractXlsxStreamingView extends AbstractXlsxView
For working with the workbook in subclasses, see Apache's POI site.
DEFAULT_CONTENT_TYPE
logger
PATH_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(java.util.Map<java.lang.String,java.lang.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, renderMergedOutputModel
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
protected org.apache.poi.xssf.streaming.SXSSFWorkbook createWorkbook(java.util.Map<java.lang.String,java.lang.Object> model, HttpServletRequest request)
SXSSFWorkbook
for streaming the XLSX format.createWorkbook
in class AbstractXlsxView
model
- 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 java.io.IOException
SXSSFWorkbook
when done with rendering.renderWorkbook
in class AbstractXlsView
workbook
- the POI Workbook to renderresponse
- current HTTP responsejava.io.IOException
- when thrown by I/O methods that we're delegating toSXSSFWorkbook.dispose()