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 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: 3798 $
- Author:
- Ross Mason
|
Method Summary |
void |
doGet(UMOEventContext context,
WriterMessageAdapter response)
|
void |
doPost(UMOEventContext context,
WriterMessageAdapter response)
|
AxisServer |
getAxisServer()
|
String |
getHomeDir()
|
protected int |
getHttpResponseStatus(AxisFault af)
|
protected String |
getProtocolVersion(HttpServletRequest req)
|
protected String |
getServiceName(UMOEventContext context,
UMOEndpointURI endpointUri)
|
String |
getTransportName()
|
void |
initialise()
Method used to perform any initialisation work. |
protected void |
invokeEndpointFromGet(MessageContext msgContext,
WriterMessageAdapter response,
String method,
String args)
|
boolean |
isEnableList()
|
protected void |
logException(Exception e)
|
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,
String moreDetailCode,
AxisFault axisFault)
|
protected void |
reportServiceInfo(WriterMessageAdapter response,
SOAPService service,
String serviceName)
|
void |
setAxisServer(AxisServer axisServer)
|
void |
setEnableList(boolean enableList)
|
void |
setHomeDir(String homeDir)
|
void |
setTransportName(String transportName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static Log logger
- logger used by this class
INIT_PROPERTY_TRANSPORT_NAME
public static final String INIT_PROPERTY_TRANSPORT_NAME
- See Also:
- Constant Field Values
INIT_PROPERTY_USE_SECURITY
public static final String INIT_PROPERTY_USE_SECURITY
- See Also:
- Constant Field Values
INIT_PROPERTY_ENABLE_LIST
public static final String INIT_PROPERTY_ENABLE_LIST
- See Also:
- Constant Field Values
DEFAULT_AXIS_HOME
public static final String DEFAULT_AXIS_HOME
- See Also:
- Constant Field Values
AxisServiceComponent
public AxisServiceComponent()
onCall
public Object onCall(UMOEventContext context)
throws Exception
- Passes the context to the listener
- Specified by:
onCall in interface Callable
- Parameters:
context - the context to 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:
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,
IOException
- Throws:
UMOException
IOException
processAxisFault
protected void processAxisFault(AxisFault fault)
logException
protected void logException(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,
String method,
String args)
throws AxisFault
- Throws:
AxisFault
reportServiceInfo
protected void reportServiceInfo(WriterMessageAdapter response,
SOAPService service,
String serviceName)
processListRequest
protected void processListRequest(WriterMessageAdapter response)
throws AxisFault
- Throws:
AxisFault
reportNoWSDL
protected void reportNoWSDL(WriterMessageAdapter response,
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,
IOException
- Throws:
ServletException
IOException
getHttpResponseStatus
protected int getHttpResponseStatus(AxisFault af)
getServiceName
protected String getServiceName(UMOEventContext context,
UMOEndpointURI endpointUri)
throws AxisFault
- Throws:
AxisFault
getProtocolVersion
protected String getProtocolVersion(HttpServletRequest req)
getTransportName
public String getTransportName()
setTransportName
public void setTransportName(String transportName)
isEnableList
public boolean isEnableList()
setEnableList
public void setEnableList(boolean enableList)
getHomeDir
public String getHomeDir()
setHomeDir
public void setHomeDir(String homeDir)
getAxisServer
public AxisServer getAxisServer()
setAxisServer
public void setAxisServer(AxisServer axisServer)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.