Class DownloadExportServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.levigo.jadice.web.server.export.DownloadExportServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class DownloadExportServlet extends jakarta.servlet.http.HttpServlet
Offers clients to download files containing a document export. Document exports are intended to be used for printing only. Any other processing other than printing is not recommended.
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    void
     
    protected void
    prepareResponseFor(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta)
     
    protected void
    streamFileTo(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

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

    Methods inherited from class java.lang.Object

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

    • DownloadExportServlet

      public DownloadExportServlet()
  • Method Details

    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • streamFileTo

      protected void streamFileTo(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) throws IOException
      Throws:
      IOException
    • prepareResponseFor

      protected void prepareResponseFor(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta)
    • cleanup

      protected void cleanup(ExportMeta meta, String id)