org.ow2.petals.binding.soap.listener.incoming.servlet
Class SoapServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.axis2.transport.http.AxisServlet
              extended by org.ow2.petals.binding.soap.listener.incoming.servlet.SoapServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.apache.axis2.transport.TransportListener

public class SoapServlet
extends org.apache.axis2.transport.http.AxisServlet

Special servlet for Jetty server. This servlet extends AxisServlet to override the initConfigContext method that load a configuration context from a War file. In the SoapComponent, the configuration context is loaded at component startup and is passed by Jetty server and this servlet.

Author:
Adrien LOUIS - EBMWebSourcing, Christophe Hamerling - EBM WebSourcing
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.axis2.transport.http.AxisServlet
org.apache.axis2.transport.http.AxisServlet.RestRequestProcessor, org.apache.axis2.transport.http.AxisServlet.ServletRequestResponseTransport
 
Field Summary
 
Fields inherited from class org.apache.axis2.transport.http.AxisServlet
agent, axisConfiguration, configContext, CONFIGURATION_CONTEXT, contextRoot, disableREST, servletConfig, SESSION_ID
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
SoapServlet(ServerStats stats, org.apache.axis2.context.ConfigurationContext configurationContext, SoapServerConfig config)
          Creates a new instance of SoapServlet
 
Method Summary
 void configureListenerManager()
          TODO: Call it after init() of AxisServlet (Axis bug) otherwise SOAPHttpsTransportListener is not set as TransportListener.
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class org.apache.axis2.transport.http.AxisServlet
createMessageContext, createMessageContext, destroy, doDelete, doPut, getEPRForService, getEPRsForService, getSessionContext, getTransportHeaders, handleFault, init, init, initConfigContext, initContextRoot, initParams, showRestDisabledErrorMessage, start, stop
 
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapServlet

public SoapServlet(ServerStats stats,
                   org.apache.axis2.context.ConfigurationContext configurationContext,
                   SoapServerConfig config)
Creates a new instance of SoapServlet

Parameters:
configContext -
stats -
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class org.apache.axis2.transport.http.AxisServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class org.apache.axis2.transport.http.AxisServlet
Throws:
javax.servlet.ServletException
java.io.IOException

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class org.apache.axis2.transport.http.AxisServlet
Throws:
javax.servlet.ServletException

configureListenerManager

public void configureListenerManager()
                              throws org.apache.axis2.AxisFault
TODO: Call it after init() of AxisServlet (Axis bug) otherwise SOAPHttpsTransportListener is not set as TransportListener.

Throws:
org.apache.axis2.AxisFault


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.