public class AxisConnector extends AbstractConnector implements MuleContextNotificationListener<MuleContextNotification>
AxisConnector
is used to maintain one or more Services for Axis
server instance.
Some of the Axis specific service initialisation code was adapted from the Ivory
project (http://ivory.codehaus.org). Thanks guys :)Modifier and Type | Field and Description |
---|---|
static String |
AXIS |
static String |
AXIS_CLIENT_CONFIG_PROPERTY |
static String |
AXIS_SERVICE_COMPONENT_NAME |
static String |
AXIS_SERVICE_PROPERTY |
static String |
DEFAULT_MULE_AXIS_CLIENT_CONFIG |
static String |
DEFAULT_MULE_AXIS_SERVER_CONFIG |
static String |
DEFAULT_MULE_NAMESPACE_URI |
static QName |
QNAME_MULE_PROVIDER |
static QName |
QNAME_MULE_TYPE_MAPPINGS |
static String |
SERVICE_PROPERTY_COMPONENT_NAME |
static String |
SERVICE_PROPERTY_SERVCE_PATH |
static String |
SOAP_METHODS |
static String |
STYLE |
static String |
USE |
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
Constructor and Description |
---|
AxisConnector(MuleContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.axis.configuration.SimpleProvider |
createAxisProvider(String config) |
protected void |
doConnect()
Template method where any connections should be made for the connector
|
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be
disconnected
|
protected void |
doDispose()
Template method to perform any work when destroying the connectoe
|
protected void |
doInitialise() |
protected void |
doStart()
Template method to perform any work when starting the connectoe
|
protected void |
doStop()
Template method to perform any work when stopping the connectoe
|
org.apache.axis.server.AxisServer |
getAxis() |
Map<String,Class<?>> |
getAxisTransportProtocols() |
List<?> |
getBeanTypes() |
String |
getClientConfig() |
org.apache.axis.configuration.SimpleProvider |
getClientProvider() |
protected Service |
getOrCreateAxisComponent() |
String |
getProtocol() |
protected Object |
getReceiverKey(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
The method determines the key used to store the receiver against.
|
String |
getServerConfig() |
org.apache.axis.configuration.SimpleProvider |
getServerProvider() |
List<String> |
getSupportedSchemes() |
boolean |
isDoAutoTypes() |
boolean |
isTreatMapAsNamedParams() |
void |
onNotification(MuleContextNotification notification) |
protected void |
registerProtocols() |
protected void |
registerReceiverWithMuleService(MessageReceiver receiver,
EndpointURI ep) |
protected void |
registerTransportTypes() |
void |
setAxis(org.apache.axis.server.AxisServer axisServer) |
void |
setAxisTransportProtocols(Map<String,Class<?>> axisTransportProtocols) |
void |
setBeanTypes(List<?> beanTypes) |
void |
setClientConfig(String clientConfig) |
void |
setClientProvider(org.apache.axis.configuration.SimpleProvider clientProvider) |
void |
setDoAutoTypes(boolean doAutoTypes) |
void |
setServerConfig(String serverConfig) |
void |
setServerProvider(org.apache.axis.configuration.SimpleProvider serverProvider) |
void |
setSupportedSchemes(List<String> supportedSchemes) |
void |
setTreatMapAsNamedParams(boolean treatMapAsNamedParams) |
protected void |
unregisterReceiverWithMuleService(MessageReceiver receiver,
EndpointURI ep) |
borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createReceiver, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getCanonicalURI, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, returnDispatcher, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted
public static final QName QNAME_MULE_PROVIDER
public static final QName QNAME_MULE_TYPE_MAPPINGS
public static final String DEFAULT_MULE_NAMESPACE_URI
public static final String DEFAULT_MULE_AXIS_SERVER_CONFIG
public static final String DEFAULT_MULE_AXIS_CLIENT_CONFIG
public static final String AXIS_SERVICE_COMPONENT_NAME
public static final String AXIS_SERVICE_PROPERTY
public static final String AXIS_CLIENT_CONFIG_PROPERTY
public static final String SERVICE_PROPERTY_COMPONENT_NAME
public static final String SERVICE_PROPERTY_SERVCE_PATH
public static final String AXIS
public static final String SOAP_METHODS
public static final String STYLE
public static final String USE
public AxisConnector(MuleContext context)
protected void registerProtocols()
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void registerTransportTypes() throws ClassNotFoundException
ClassNotFoundException
protected org.apache.axis.configuration.SimpleProvider createAxisProvider(String config) throws InitialisationException
InitialisationException
public String getProtocol()
getProtocol
in interface Connector
protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint)
getReceiverKey
in class AbstractConnector
flowConstruct
- the component for which the endpoint is being registeredendpoint
- the endpoint being registered for the componentprotected void unregisterReceiverWithMuleService(MessageReceiver receiver, EndpointURI ep) throws MuleException
MuleException
protected void registerReceiverWithMuleService(MessageReceiver receiver, EndpointURI ep) throws MuleException
MuleException
protected Service getOrCreateAxisComponent() throws MuleException
MuleException
protected void doStart() throws MuleException
doStart
in class AbstractConnector
MuleException
- if the method failsprotected void doStop() throws MuleException
doStop
in class AbstractConnector
MuleException
- if the method failsprotected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
protected void doDispose()
AbstractConnector
doDispose
in class AbstractConnector
public String getServerConfig()
public void setServerConfig(String serverConfig)
public List<?> getBeanTypes()
public void setBeanTypes(List<?> beanTypes)
public String getClientConfig()
public void setClientConfig(String clientConfig)
public org.apache.axis.server.AxisServer getAxis()
public void setAxis(org.apache.axis.server.AxisServer axisServer)
public org.apache.axis.configuration.SimpleProvider getServerProvider()
public void setServerProvider(org.apache.axis.configuration.SimpleProvider serverProvider)
public org.apache.axis.configuration.SimpleProvider getClientProvider()
public void setClientProvider(org.apache.axis.configuration.SimpleProvider clientProvider)
public void setAxisTransportProtocols(Map<String,Class<?>> axisTransportProtocols)
public boolean isDoAutoTypes()
public void setDoAutoTypes(boolean doAutoTypes)
public boolean isTreatMapAsNamedParams()
public void setTreatMapAsNamedParams(boolean treatMapAsNamedParams)
public void onNotification(MuleContextNotification notification)
onNotification
in interface ServerNotificationListener<MuleContextNotification>
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.