org.apache.tuscany.sca.binding.ws.axis2
Class Axis2ServiceServlet

java.lang.Object
  extended by AxisServlet
      extended by org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet

public class Axis2ServiceServlet
extends AxisServlet

This overrides the Servlet init of the AxisServlet so Tuscany can use a single Axis2 ConfigurationContext instance shared between AxisServlet instances for each SCA service with a ws binding. TODO: need to review if thats really what we want to be doing


Field Summary
protected  TuscanyListingAgent agent
           
 
Constructor Summary
Axis2ServiceServlet()
           
 
Method Summary
 void destroy()
           
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Override the AxisServlet doGet to use the TuscanyListingAgent for ?wsdl
 EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
          /** Override the AxisServlet method so as to not add "/services" into the URL and to work with Tuscany service names.
 ServletConfig getServletConfig()
           
 java.lang.String getServletName()
           
 void init()
          Override Axis2 Servlet method to avoid loop when init is called after servletConfig already initialized by this classes init(ConfigurationContext) method.
 void init(ConfigurationContext configContext)
           
 void init(ServletConfig config)
           
protected  ConfigurationContext initConfigContext(ServletConfig config)
          We've setup the Servlet by passing in a ConfigurationContext on our init method override this method to just return that
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

protected TuscanyListingAgent agent
Constructor Detail

Axis2ServiceServlet

public Axis2ServiceServlet()
Method Detail

init

public void init(ConfigurationContext configContext)

init

public void init()
          throws ServletException
Override Axis2 Servlet method to avoid loop when init is called after servletConfig already initialized by this classes init(ConfigurationContext) method.

Throws:
ServletException

init

public void init(ServletConfig config)
          throws ServletException
Throws:
ServletException

initConfigContext

protected ConfigurationContext initConfigContext(ServletConfig config)
                                          throws ServletException
We've setup the Servlet by passing in a ConfigurationContext on our init method override this method to just return that

Throws:
ServletException

getServletConfig

public ServletConfig getServletConfig()

getServletName

public java.lang.String getServletName()

destroy

public void destroy()

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Override the AxisServlet doGet to use the TuscanyListingAgent for ?wsdl

Throws:
ServletException
java.io.IOException

getEPRsForService

public EndpointReference[] getEPRsForService(java.lang.String serviceName,
                                             java.lang.String ip)
                                      throws AxisFault
/** Override the AxisServlet method so as to not add "/services" into the URL and to work with Tuscany service names. can go once moved to Axis2 1.3

Throws:
AxisFault