org.apache.geronimo.jetty6
Class JettyPOJOWebServiceHolder

java.lang.Object
  extended by org.apache.geronimo.jetty6.JettyPOJOWebServiceHolder
All Implemented Interfaces:
GBeanLifecycle

public class JettyPOJOWebServiceHolder
extends Object
implements GBeanLifecycle

This is intended to hold the web service stack for an axis POJO web service. It is starting life as a copy of JettyServletHolder.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
JettyPOJOWebServiceHolder()
           
JettyPOJOWebServiceHolder(String pojoClassName, String servletName, Map initParams, Integer loadOnStartup, Set servletMappings, String runAsRole, WebServiceContainerFactory webServiceContainerFactory, JettyServletRegistration context)
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 String getServletName()
           
 void handle(ServletRequest request, ServletResponse response)
          TODO THIS IS NOT CALLED!!!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

JettyPOJOWebServiceHolder

public JettyPOJOWebServiceHolder()

JettyPOJOWebServiceHolder

public JettyPOJOWebServiceHolder(String pojoClassName,
                                 String servletName,
                                 Map initParams,
                                 Integer loadOnStartup,
                                 Set servletMappings,
                                 String runAsRole,
                                 WebServiceContainerFactory webServiceContainerFactory,
                                 JettyServletRegistration context)
                          throws Exception
Throws:
Exception
Method Detail

getServletName

public String getServletName()

handle

public void handle(ServletRequest request,
                   ServletResponse response)
            throws ServletException,
                   UnavailableException,
                   IOException
TODO THIS IS NOT CALLED!!! only the ServletHolder is!! Service a request with this servlet. Set the ThreadLocal to hold the current JettyServletHolder.

Throws:
ServletException
UnavailableException
IOException

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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