Package org.eclipse.jetty.servlet
Interface ServletHolder.WrapFunction
-
- Enclosing class:
- ServletHolder
public static interface ServletHolder.WrapFunction
Experimental Wrapper mechanism for Servlet objects.Beans in
ServletContextHandler
orWebAppContext
that implement this interface will be called to optionally wrap any newly created Servlets (before theirServlet.init(ServletConfig)
method is called)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.servlet.Servlet
wrapServlet(javax.servlet.Servlet servlet)
Optionally wrap the Servlet.
-
-
-
Method Detail
-
wrapServlet
javax.servlet.Servlet wrapServlet(javax.servlet.Servlet servlet)
Optionally wrap the Servlet.- Parameters:
servlet
- the servlet being passed in.- Returns:
- the servlet (extend from
ServletHolder.Wrapper
if you do wrap the Servlet)
-
-