Interface ServletHolder.WrapFunction

  • Enclosing class:

    public static interface ServletHolder.WrapFunction
    Experimental Wrapper mechanism for Servlet objects.

    Beans in ServletContextHandler or WebAppContext that implement this interface will be called to optionally wrap any newly created Servlets (before their Servlet.init(ServletConfig) method is called)

    • Method Detail

      • wrapServlet

        javax.servlet.Servlet wrapServlet​(javax.servlet.Servlet servlet)
        Optionally wrap the Servlet.
        servlet - the servlet being passed in.
        the servlet (extend from ServletHolder.Wrapper if you do wrap the Servlet)