org.mule.providers.soap.axis
Class AxisServiceComponent
java.lang.Object
org.mule.providers.soap.axis.AxisServiceComponent
- All Implemented Interfaces:
- Callable, Initialisable, UMOEventListener
- 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 -
- Jws class services are not supported as they don't add any value to the
Mule model
- Currently there is no HttpSession support. This will be fixed when Session
support is added to the Http Connector
- Version:
- $Revision: 1.3 $
- Author:
- Ross Mason
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()
Method used to perform any initialisation work. |
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 |
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
AxisServiceComponent
public AxisServiceComponent()
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-
- One has been configured for the UMO.
- 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 exceptionListener associated with the component
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal
error occurs during initialisation an
InitialisationException
should be thrown, causing the Mule instance to shutdown. If the error is
recoverable, say by retrying to connect, a RecoverableException
should be thrown. There is no guarantee that by throwing a Recoverable exception
that the Mule instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to
shutdown
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.