Class AbstractXlsxStreamingView
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
org.springframework.web.servlet.view.document.AbstractXlsxStreamingView
- All Implemented Interfaces:
- Aware, BeanNameAware, ApplicationContextAware, ServletContextAware, View
@Deprecated(since="7.0",
            forRemoval=true)
public abstract class AbstractXlsxStreamingView
extends AbstractXlsxView
Deprecated, for removal: This API element is subject to removal in a future version.
Convenient superclass for Excel document views in the Office 2007 XLSX format,
using POI's streaming variant. Compatible with Apache POI 3.9 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 AbstractViewDEFAULT_CONTENT_TYPEFields inherited from class ApplicationObjectSupportloggerFields inherited from interface ViewPATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionprotected org.apache.poi.xssf.streaming.SXSSFWorkbookcreateWorkbook(Map<String, Object> model, jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.This implementation creates aSXSSFWorkbookfor streaming the XLSX format.protected voidrenderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, jakarta.servlet.http.HttpServletResponse response) Deprecated, for removal: This API element is subject to removal in a future version.This implementation disposes of theSXSSFWorkbookwhen done with rendering.Methods inherited from class AbstractXlsViewbuildExcelDocument, generatesDownloadContent, renderMergedOutputModelMethods inherited from class 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 WebApplicationObjectSupportgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class ApplicationObjectSupportgetApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
- 
Constructor Details- 
AbstractXlsxStreamingViewpublic AbstractXlsxStreamingView()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
createWorkbookprotected org.apache.poi.xssf.streaming.SXSSFWorkbook createWorkbook(Map<String, Object> model, jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.This implementation creates aSXSSFWorkbookfor streaming the XLSX format.- Overrides:
- createWorkbookin class- AbstractXlsxView
- Parameters:
- model- the model Map
- request- current HTTP request (for taking the URL or headers into account)
- Returns:
- the new Workbookinstance
 
- 
renderWorkbookprotected void renderWorkbook(org.apache.poi.ss.usermodel.Workbook workbook, jakarta.servlet.http.HttpServletResponse response) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.This implementation disposes of theSXSSFWorkbookwhen done with rendering.- Overrides:
- renderWorkbookin class- AbstractXlsView
- Parameters:
- workbook- the POI Workbook to render
- response- current HTTP response
- Throws:
- IOException- when thrown by I/O methods that we're delegating to
- See Also:
 
 
- 
Viewclass or perform rendering in web handlers directly.