org.objectweb.jonas.ws.axis
Class JAxisServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.axis.transport.http.AxisServletBase
              extended byorg.apache.axis.transport.http.AxisServlet
                  extended byorg.objectweb.jonas.ws.axis.JAxisServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JAxisServlet
extends org.apache.axis.transport.http.AxisServlet

JOnAS AxisServlet version (add multiple AxisEngine in ServletContext).

Author:
Guillaume Sauthier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis.transport.http.AxisServlet
INIT_PROPERTY_DISABLE_SERVICES_LIST, INIT_PROPERTY_ENABLE_LIST, INIT_PROPERTY_JWS_CLASS_DIR, INIT_PROPERTY_TRANSPORT_NAME, INIT_PROPERTY_USE_SECURITY, log
 
Fields inherited from class org.apache.axis.transport.http.AxisServletBase
ATTR_AXIS_ENGINE, axisServer
 
Constructor Summary
JAxisServlet()
           
 
Method Summary
 void destroy()
          Destroy method is called when the servlet is going away.
 org.apache.axis.server.AxisServer getEngine()
          get the engine for this servlet from cache or context
static org.apache.axis.server.AxisServer getEngine(javax.servlet.http.HttpServlet servlet)
          This is a uniform method of initializing AxisServer in a servlet context.
 
Methods inherited from class org.apache.axis.transport.http.AxisServlet
doGet, doPost, getDefaultJWSClassDir, getHttpServletResponseStatus, getJWSClassDir, init, initQueryStringHandlers, logException, processAxisFault, reportAvailableServices, reportCantGetAxisService, reportCantGetJWSService, reportNoWSDL, reportServiceInfo
 
Methods inherited from class org.apache.axis.transport.http.AxisServletBase
decLockCounter, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebappBase, getWebInfPath, incLockCounter, isDevelopment, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAxisServlet

public JAxisServlet()
Method Detail

destroy

public void destroy()
Destroy method is called when the servlet is going away. Pass this down to the AxisEngine to let it clean up...
But don't create the engine if it hasn't already been created. TODO Fixme for multiple servlets. This has always been slightly broken (the context's copy stayed around), but now we have extracted it into a superclass it is blatantly broken.


getEngine

public org.apache.axis.server.AxisServer getEngine()
                                            throws org.apache.axis.AxisFault
get the engine for this servlet from cache or context

Returns:
the current servlet's engine
Throws:
org.apache.axis.AxisFault - when an AxisEngine cannot be found

getEngine

public static org.apache.axis.server.AxisServer getEngine(javax.servlet.http.HttpServlet servlet)
                                                   throws org.apache.axis.AxisFault
This is a uniform method of initializing AxisServer in a servlet context.

Parameters:
servlet - servlet wanting an AxisEngine
Returns:
Returns the AxisEngine given the current servlet environnment
Throws:
org.apache.axis.AxisFault - when an AxisEngine cannot be found TODO add catch for not being able to cast the context attr to an engine and reinit the engine if so.