org.apache.cocoon.tools.rcl.wrapper.servlet
Class ReloadingServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- public class ReloadingServlet
- extends HttpServlet
This servlet builds a classloading sandbox and runs another servlet inside
that sandbox. The purpose is to use the reloading classloader to load the
This servlet propagates all initialisation parameters to the sandboxed
servlet, and requires the parameter servlet-class.
servlet-class defines the sandboxed servlet class.
- Version:
- $Id: ReloadingServlet.java 635835 2008-03-11 07:49:12Z reinhard $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servlet
protected Servlet servlet
config
protected ServletConfig config
ReloadingServlet
public ReloadingServlet()
init
public void init(ServletConfig config)
throws ServletException
- Throws:
ServletException- See Also:
GenericServlet.init(javax.servlet.ServletConfig)
service
public void service(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
- Service the request by delegating the call to the real servlet
- Throws:
ServletException
IOException
destroy
public void destroy()
- Destroy the actual servlet
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.