Class ServletHelper


  • public class ServletHelper
    extends Object
    Helpers for servlets.
    Since:
    5.6
    • Method Detail

      • startTransaction

        public static boolean startTransaction​(javax.servlet.http.HttpServletRequest request)
      • getRFC2231ContentDisposition

        public static String getRFC2231ContentDisposition​(javax.servlet.http.HttpServletRequest request,
                                                          String filename)
        Generate a Content-Disposition string based on the servlet request for a given filename. The value follows RFC2231
        Returns:
        a full string to set as value of a Content-Disposition header
        Since:
        5.7.2
      • setServletContext

        public static void setServletContext​(javax.servlet.ServletContext servletContext)
        Since:
        8.3
      • getServletContext

        public static javax.servlet.ServletContext getServletContext()
        Since:
        8.3
      • removeServletContext

        public static void removeServletContext()
        Since:
        8.3