public abstract class AbstractXlsxView extends AbstractXlsView
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 |
---|
AbstractXlsxView()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.poi.ss.usermodel.Workbook |
createWorkbook(java.util.Map<java.lang.String,java.lang.Object> model,
HttpServletRequest request)
This implementation creates an
XSSFWorkbook for the XLSX format. |
buildExcelDocument, generatesDownloadContent, renderMergedOutputModel, renderWorkbook
addStaticAttribute, 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, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
public AbstractXlsxView()
Sets the content type of the view to
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
.
protected org.apache.poi.ss.usermodel.Workbook createWorkbook(java.util.Map<java.lang.String,java.lang.Object> model, HttpServletRequest request)
XSSFWorkbook
for the XLSX format.createWorkbook
in class AbstractXlsView
model
- the model Maprequest
- current HTTP request (for taking the URL or headers into account)Workbook
instance