Class ExportServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
de.businesscode.bcdui.web.wrs.ExportServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
CsvServlet, ExcelExportServlet, SylkServlet

public class ExportServlet extends jakarta.servlet.http.HttpServlet
Servlet providing the base class for ExcelExportServlet, SylkServlet and CsvServlet. For now, the class handles the maxRowsDefault parameter that's common to all these servlets. It provides method getMaxRows that can be overwritten for a custom logic on the export rows limit.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getMaxRows(jakarta.servlet.http.HttpServletRequest request, int defValue)
    Returns the maxRows value from subject setting bcdExport:maxRows
    protected String
     
    void
    init(jakarta.servlet.ServletConfig config)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, isSensitiveHeader, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • maxRowsDefault

      protected int maxRowsDefault
  • Constructor Details

    • ExportServlet

      public ExportServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
    • getMaxRows

      public int getMaxRows(jakarta.servlet.http.HttpServletRequest request, int defValue)
      Returns the maxRows value from subject setting bcdExport:maxRows
      Parameters:
      defValue - fallback default value
      Returns:
      either the given default value or the value coming from subjectSettings (if it's a valid integer)
    • getMaxRowsUserPermissionType

      protected String getMaxRowsUserPermissionType()