Class AbstractXlsxView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.document.AbstractXlsView
org.springframework.web.servlet.view.document.AbstractXlsxView
- All Implemented Interfaces:
- Aware,- BeanNameAware,- ApplicationContextAware,- ServletContextAware,- View
- Direct Known Subclasses:
- AbstractXlsxStreamingView
Convenient superclass for Excel document views in the Office 2007 XLSX format
 (as supported by POI-OOXML). Compatible with Apache POI 3.5 and higher.
 
For working with the workbook in subclasses, see Apache's POI site.
- Since:
- 4.2
- Author:
- Juergen Hoeller
- 
Field SummaryFields inherited from class org.springframework.web.servlet.view.AbstractViewDEFAULT_CONTENT_TYPEFields inherited from class org.springframework.context.support.ApplicationObjectSupportloggerFields inherited from interface org.springframework.web.servlet.ViewPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.apache.poi.ss.usermodel.WorkbookcreateWorkbook(Map<String, Object> model, HttpServletRequest request) This implementation creates anXSSFWorkbookfor the XLSX format.Methods inherited from class org.springframework.web.servlet.view.document.AbstractXlsViewbuildExcelDocument, generatesDownloadContent, renderMergedOutputModel, renderWorkbookMethods inherited from class org.springframework.web.servlet.view.AbstractViewaddStaticAttribute, 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, writeToResponseMethods inherited from class org.springframework.web.context.support.WebApplicationObjectSupportgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class org.springframework.context.support.ApplicationObjectSupportgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
- 
Constructor Details- 
AbstractXlsxViewpublic AbstractXlsxView()Default Constructor.Sets the content type of the view to "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet".
 
- 
- 
Method Details- 
createWorkbookprotected org.apache.poi.ss.usermodel.Workbook createWorkbook(Map<String, Object> model, HttpServletRequest request) This implementation creates anXSSFWorkbookfor the XLSX format.- Overrides:
- createWorkbookin class- AbstractXlsView
- Parameters:
- model- the model Map
- request- current HTTP request (for taking the URL or headers into account)
- Returns:
- the new Workbookinstance
 
 
-