Class AbstractXlsxView

All Implemented Interfaces:
Aware, BeanNameAware, ApplicationContextAware, ServletContextAware, View
Direct Known Subclasses:
AbstractXlsxStreamingView

public abstract class AbstractXlsxView extends AbstractXlsView
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
  • Constructor Details

    • AbstractXlsxView

      public AbstractXlsxView()
      Default Constructor.

      Sets the content type of the view to "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet".

  • Method Details

    • createWorkbook

      protected org.apache.poi.ss.usermodel.Workbook createWorkbook(Map<String,Object> model, HttpServletRequest request)
      This implementation creates an XSSFWorkbook for the XLSX format.
      Overrides:
      createWorkbook in class AbstractXlsView
      Parameters:
      model - the model Map
      request - current HTTP request (for taking the URL or headers into account)
      Returns:
      the new Workbook instance