org.apache.cocoon.tools.rcl.wrapper.servlet
Class ReloadingServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.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.

Version:
$Id: ReloadingServlet.java 635835 2008-03-11 07:49:12Z reinhard $
See Also:
Serialized Form

Field Summary
protected  ServletConfig config
           
protected  Servlet servlet
           
 
Constructor Summary
ReloadingServlet()
           
 
Method Summary
 void destroy()
          Destroy the actual servlet
 void init(ServletConfig config)
           
 void service(ServletRequest request, ServletResponse response)
          Service the request by delegating the call to the real servlet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servlet

protected Servlet servlet

config

protected ServletConfig config
Constructor Detail

ReloadingServlet

public ReloadingServlet()
Method Detail

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.