Class DownloadServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class DownloadServlet
    extends javax.servlet.http.HttpServlet
    Simple download servlet used for big files that can not be downloaded from within the JSF context (because of buffered ResponseWrapper).
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NXBIGFILE
      Deprecated.
      since 7.4, use nxfile instead
    • Constructor Summary

      Constructors 
      Constructor Description
      DownloadServlet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      void doHead​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      protected void handleDownload​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
      protected void handleDownloadTemporaryZip​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String filePath)
      Deprecated.
      since 9.1.
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Method Detail

      • doHead

        public void doHead​(javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse resp)
                    throws IOException
        Overrides:
        doHead in class javax.servlet.http.HttpServlet
        Throws:
        IOException
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse resp)
                   throws IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        IOException
      • handleDownload

        protected void handleDownload​(javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse resp)
                               throws IOException
        Throws:
        IOException
      • handleDownloadTemporaryZip

        @Deprecated
        protected void handleDownloadTemporaryZip​(javax.servlet.http.HttpServletRequest req,
                                                  javax.servlet.http.HttpServletResponse resp,
                                                  String filePath)
                                           throws IOException
        Deprecated.
        since 9.1. It was defined for ClipboardActionsBean but it seems not to be used anymore.
        Throws:
        IOException