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 -
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_AXIS_HOME |
static String |
INIT_PROPERTY_ENABLE_LIST |
static String |
INIT_PROPERTY_TRANSPORT_NAME |
static String |
INIT_PROPERTY_USE_SECURITY |
protected static Log |
logger |
PHASE_NAME
Constructor and Description |
---|
AxisServiceComponent()
For IoC
|
Modifier and Type | Method and Description |
---|---|
void |
doGet(MuleEventContext context,
AxisStringWriter response) |
protected void |
doPost(MuleEventContext context,
AxisStringWriter response) |
org.apache.axis.server.AxisServer |
getAxis() |
String |
getHomeDir() |
protected int |
getHttpResponseStatus(org.apache.axis.AxisFault af) |
protected String |
getServiceName(MuleEventContext context,
EndpointURI endpointUri) |
String |
getTransportName() |
void |
initialise()
Method used to perform any initialisation work.
|
protected void |
invokeEndpointFromGet(org.apache.axis.MessageContext msgContext,
AxisStringWriter response,
String method,
String args) |
boolean |
isEnableList() |
Object |
onCall(MuleEventContext context)
Passes the context to the listener
|
protected void |
processAxisFault(org.apache.axis.AxisFault fault) |
protected void |
processListRequest(AxisStringWriter response) |
protected void |
processMethodRequest(org.apache.axis.MessageContext msgContext,
MuleEventContext context,
AxisStringWriter response,
EndpointURI endpointUri) |
protected void |
processWsdlRequest(org.apache.axis.MessageContext msgContext,
AxisStringWriter response) |
protected void |
reportAvailableServices(MuleEventContext context,
AxisStringWriter response) |
protected void |
reportCantGetAxisService(MuleEventContext context,
AxisStringWriter response) |
protected void |
reportServiceInfo(AxisStringWriter response,
org.apache.axis.handlers.soap.SOAPService service,
String serviceName) |
void |
setAxis(org.apache.axis.server.AxisServer axisServer) |
void |
setEnableList(boolean enableList) |
void |
setHomeDir(String homeDir) |
void |
setTransportName(String transportName) |
protected static final Log logger
public static final String INIT_PROPERTY_TRANSPORT_NAME
public static final String INIT_PROPERTY_USE_SECURITY
public static final String INIT_PROPERTY_ENABLE_LIST
public static final String DEFAULT_AXIS_HOME
public Object onCall(MuleEventContext context) throws Exception
onCall
in interface Callable
context
- the context to processLifecycleAdapter
for the component receives this
object it will first see if the Object is an MuleEvent
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-
setStopFurtherProcessing(true)
wasn't called
on the previous context.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 componentpublic void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void doGet(MuleEventContext context, AxisStringWriter response) throws MuleException, IOException
MuleException
IOException
protected void doPost(MuleEventContext context, AxisStringWriter response) throws Exception
Exception
protected void processAxisFault(org.apache.axis.AxisFault fault)
protected void processMethodRequest(org.apache.axis.MessageContext msgContext, MuleEventContext context, AxisStringWriter response, EndpointURI endpointUri) throws org.apache.axis.AxisFault
org.apache.axis.AxisFault
protected void processWsdlRequest(org.apache.axis.MessageContext msgContext, AxisStringWriter response) throws org.apache.axis.AxisFault
org.apache.axis.AxisFault
protected void invokeEndpointFromGet(org.apache.axis.MessageContext msgContext, AxisStringWriter response, String method, String args) throws org.apache.axis.AxisFault
org.apache.axis.AxisFault
protected void reportServiceInfo(AxisStringWriter response, org.apache.axis.handlers.soap.SOAPService service, String serviceName)
protected void processListRequest(AxisStringWriter response) throws org.apache.axis.AxisFault
org.apache.axis.AxisFault
protected void reportAvailableServices(MuleEventContext context, AxisStringWriter response) throws org.apache.axis.ConfigurationException, org.apache.axis.AxisFault
org.apache.axis.ConfigurationException
org.apache.axis.AxisFault
protected void reportCantGetAxisService(MuleEventContext context, AxisStringWriter response)
protected int getHttpResponseStatus(org.apache.axis.AxisFault af)
protected String getServiceName(MuleEventContext context, EndpointURI endpointUri) throws org.apache.axis.AxisFault
org.apache.axis.AxisFault
public String getTransportName()
public void setTransportName(String transportName)
public boolean isEnableList()
public void setEnableList(boolean enableList)
public String getHomeDir()
public void setHomeDir(String homeDir)
public org.apache.axis.server.AxisServer getAxis()
public void setAxis(org.apache.axis.server.AxisServer axisServer)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.