org.mule.providers.soap.axis
Class AxisServiceComponent

java.lang.Object
  extended byorg.mule.providers.soap.axis.AxisServiceComponent
All Implemented Interfaces:
Callable, Initialisable

public class AxisServiceComponent
extends java.lang.Object
implements Initialisable, Callable

AxisServiceComponent is a Mule component implementation of the Axis servlet. This component supports all the features of the Axis servlet except -

  1. Jws class services are not supported as they don't add any value to the Mule model
  2. Currently there is no HttpSession support. This will be fixed when Session support is added to the Http Connector

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Field Summary
static java.lang.String DEFAULT_AXIS_HOME
           
static java.lang.String INIT_PROPERTY_ENABLE_LIST
           
static java.lang.String INIT_PROPERTY_TRANSPORT_NAME
           
static java.lang.String INIT_PROPERTY_USE_SECURITY
           
protected static Log logger
          logger used by this class
 
Constructor Summary
AxisServiceComponent()
           
 
Method Summary
 void doGet(UMOEventContext context, WriterMessageAdapter response)
           
 void doPost(UMOEventContext context, WriterMessageAdapter response)
           
 AxisServer getAxisServer()
           
 java.lang.String getHomeDir()
           
protected  int getHttpResponseStatus(AxisFault af)
           
protected  java.lang.String getProtocolVersion(HttpServletRequest req)
           
protected  java.lang.String getServiceName(UMOEventContext context, UMOEndpointURI endpointUri)
           
 java.lang.String getTransportName()
           
 void initialise()
           
protected  void invokeEndpointFromGet(MessageContext msgContext, WriterMessageAdapter response, java.lang.String method, java.lang.String args)
           
 boolean isEnableList()
           
protected  void logException(java.lang.Exception e)
           
 java.lang.Object onCall(UMOEventContext context)
          Passes the context to the listener
protected  void processAxisFault(AxisFault fault)
           
protected  void processListRequest(WriterMessageAdapter response)
           
protected  void processMethodRequest(MessageContext msgContext, UMOEventContext context, WriterMessageAdapter response, UMOEndpointURI endpointUri)
           
protected  void processWsdlRequest(MessageContext msgContext, WriterMessageAdapter response)
           
protected  void reportAvailableServices(UMOEventContext context, WriterMessageAdapter response)
           
protected  void reportCantGetAxisService(UMOEventContext context, WriterMessageAdapter response)
           
protected  void reportNoWSDL(WriterMessageAdapter response, java.lang.String moreDetailCode, AxisFault axisFault)
           
protected  void reportServiceInfo(WriterMessageAdapter response, SOAPService service, java.lang.String serviceName)
           
 void setAxisServer(AxisServer axisServer)
           
 void setEnableList(boolean enableList)
           
 void setHomeDir(java.lang.String homeDir)
           
 void setTransportName(java.lang.String transportName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient Log logger
logger used by this class


INIT_PROPERTY_TRANSPORT_NAME

public static final java.lang.String INIT_PROPERTY_TRANSPORT_NAME
See Also:
Constant Field Values

INIT_PROPERTY_USE_SECURITY

public static final java.lang.String INIT_PROPERTY_USE_SECURITY
See Also:
Constant Field Values

INIT_PROPERTY_ENABLE_LIST

public static final java.lang.String INIT_PROPERTY_ENABLE_LIST
See Also:
Constant Field Values

DEFAULT_AXIS_HOME

public static final java.lang.String DEFAULT_AXIS_HOME
See Also:
Constant Field Values
Constructor Detail

AxisServiceComponent

public AxisServiceComponent()
Method Detail

onCall

public java.lang.Object onCall(UMOEventContext context)
                        throws java.lang.Exception
Passes the context to the listener

Specified by:
onCall in interface Callable
Parameters:
context - the context ot process
Returns:
Object this object can be anything. When the UMOLifecycleAdapter for the component receives this object it will first see if the Object is an UMOEvent if not and the Object is not null a new context will be created using the returned object as the payload. This new context will then get published to the configured outbound endpoint if-
  1. One has been configured for the UMO.
  2. the setStopFurtherProcessing(true) wasn't called on the previous context.
Throws:
java.lang.Exception - if the context fails to process properly. If exceptions aren't handled by the implementation they will be handled by the exceptionStrategy associated with the component

initialise

public void initialise()
                throws InitialisationException
Specified by:
initialise in interface Initialisable
Throws:
InitialisationException

doGet

public void doGet(UMOEventContext context,
                  WriterMessageAdapter response)
           throws UMOException,
                  java.io.IOException
Throws:
UMOException
java.io.IOException

processAxisFault

protected void processAxisFault(AxisFault fault)

logException

protected void logException(java.lang.Exception e)

processMethodRequest

protected void processMethodRequest(MessageContext msgContext,
                                    UMOEventContext context,
                                    WriterMessageAdapter response,
                                    UMOEndpointURI endpointUri)
                             throws AxisFault
Throws:
AxisFault

processWsdlRequest

protected void processWsdlRequest(MessageContext msgContext,
                                  WriterMessageAdapter response)
                           throws AxisFault
Throws:
AxisFault

invokeEndpointFromGet

protected void invokeEndpointFromGet(MessageContext msgContext,
                                     WriterMessageAdapter response,
                                     java.lang.String method,
                                     java.lang.String args)
                              throws AxisFault
Throws:
AxisFault

reportServiceInfo

protected void reportServiceInfo(WriterMessageAdapter response,
                                 SOAPService service,
                                 java.lang.String serviceName)

processListRequest

protected void processListRequest(WriterMessageAdapter response)
                           throws AxisFault
Throws:
AxisFault

reportNoWSDL

protected void reportNoWSDL(WriterMessageAdapter response,
                            java.lang.String moreDetailCode,
                            AxisFault axisFault)

reportAvailableServices

protected void reportAvailableServices(UMOEventContext context,
                                       WriterMessageAdapter response)
                                throws ConfigurationException,
                                       AxisFault
Throws:
ConfigurationException
AxisFault

reportCantGetAxisService

protected void reportCantGetAxisService(UMOEventContext context,
                                        WriterMessageAdapter response)

doPost

public void doPost(UMOEventContext context,
                   WriterMessageAdapter response)
            throws ServletException,
                   java.io.IOException
Throws:
ServletException
java.io.IOException

getHttpResponseStatus

protected int getHttpResponseStatus(AxisFault af)

getServiceName

protected java.lang.String getServiceName(UMOEventContext context,
                                          UMOEndpointURI endpointUri)
                                   throws AxisFault
Throws:
AxisFault

getProtocolVersion

protected java.lang.String getProtocolVersion(HttpServletRequest req)

getTransportName

public java.lang.String getTransportName()

setTransportName

public void setTransportName(java.lang.String transportName)

isEnableList

public boolean isEnableList()

setEnableList

public void setEnableList(boolean enableList)

getHomeDir

public java.lang.String getHomeDir()

setHomeDir

public void setHomeDir(java.lang.String homeDir)

getAxisServer

public AxisServer getAxisServer()

setAxisServer

public void setAxisServer(AxisServer axisServer)


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.