org.apache.geronimo.jetty6
Class InternalJettyServletHolder

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by org.mortbay.jetty.servlet.Holder
          extended by org.mortbay.jetty.servlet.ServletHolder
              extended by org.apache.geronimo.jetty6.InternalJettyServletHolder
All Implemented Interfaces:
Serializable, Comparable, org.mortbay.component.LifeCycle

public class InternalJettyServletHolder
extends org.mortbay.jetty.servlet.ServletHolder

See Also:
Serialized Form

Nested Class Summary
 class InternalJettyServletHolder.StartCommand
           
 class InternalJettyServletHolder.StopCommand
           
 
Field Summary
 
Fields inherited from class org.mortbay.jetty.servlet.Holder
_class, _className, _displayName, _extInstance, _initParams, _name, _servletHandler
 
Constructor Summary
InternalJettyServletHolder(AbstractImmutableHandler lifecycleChain, Subject runAsSubject, JettyServletRegistration servletRegistration)
           
 
Method Summary
 void destroyInstance(Object o)
           
 void doStart()
           
 void doStop()
           
 void handle(ServletRequest request, ServletResponse response)
          Service a request with this servlet.
 Object newInstance()
           
 
Methods inherited from class org.mortbay.jetty.servlet.ServletHolder
checkServletType, compareTo, equals, getForcedPath, getInitOrder, getRoleMap, getRunAs, getServlet, getUserRoleLink, hashCode, isAvailable, setForcedPath, setInitOrder, setRunAs, setServlet, setUserRoleLink
 
Methods inherited from class org.mortbay.jetty.servlet.Holder
getClassName, getDisplayName, getHeldClass, getInitParameter, getInitParameterNames, getInitParameters, getName, getServletHandler, setClassName, setDisplayName, setHeldClass, setInitParameter, setInitParameters, setName, setServletHandler, toString
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalJettyServletHolder

public InternalJettyServletHolder(AbstractImmutableHandler lifecycleChain,
                                  Subject runAsSubject,
                                  JettyServletRegistration servletRegistration)
Method Detail

handle

public void handle(ServletRequest request,
                   ServletResponse response)
            throws ServletException,
                   UnavailableException,
                   IOException
Service a request with this servlet. Set the ThreadLocal to hold the current JettyServletHolder.

Overrides:
handle in class org.mortbay.jetty.servlet.ServletHolder
Throws:
ServletException
UnavailableException
IOException

newInstance

public Object newInstance()
                   throws InstantiationException,
                          IllegalAccessException
Overrides:
newInstance in class org.mortbay.jetty.servlet.Holder
Throws:
InstantiationException
IllegalAccessException

destroyInstance

public void destroyInstance(Object o)
                     throws Exception
Overrides:
destroyInstance in class org.mortbay.jetty.servlet.ServletHolder
Throws:
Exception

doStart

public void doStart()
             throws Exception
Overrides:
doStart in class org.mortbay.jetty.servlet.ServletHolder
Throws:
Exception

doStop

public void doStop()
Overrides:
doStop in class org.mortbay.jetty.servlet.ServletHolder


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.