org.mule.providers.soap.xfire
Class XFireConnector

java.lang.Object
  extended by org.mule.providers.AbstractConnector
      extended by org.mule.providers.soap.xfire.XFireConnector
All Implemented Interfaces:
ExceptionListener, EventListener, javax.resource.spi.work.WorkListener, ManagerNotificationListener, Disposable, Initialisable, UMOServerNotificationListener, UMOConnectable, UMOConnector
Direct Known Subclasses:
XFireWsdlConnector

public class XFireConnector
extends AbstractConnector
implements ManagerNotificationListener

Configures Xfire to provide STaX-based Web Servies support to Mule.


Field Summary
static String CLASSNAME_ANNOTATIONS
           
static String DEFAULT_MULE_NAMESPACE_URI
           
static String XFIRE_PROPERTY
           
static String XFIRE_SERVICE_COMPONENT_NAME
           
static String XFIRE_TRANSPORT
           
protected  MuleDescriptor xfireDescriptor
           
 
Fields inherited from class org.mule.providers.AbstractConnector
connected, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, defaultInboundTransformer, defaultOutboundTransformer, defaultResponseTransformer, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, name, numberOfConcurrentTransactedReceivers, receivers, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect
 
Fields inherited from interface org.mule.umo.provider.UMOConnector
INT_VALUE_NOT_SET
 
Constructor Summary
XFireConnector()
           
 
Method Summary
protected  void configureBindingProvider(org.codehaus.xfire.service.binding.ObjectServiceFactory factory)
           
protected  MuleDescriptor createxfireDescriptor()
           
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
 String getBindingProvider()
           
 List getClientInHandlers()
           
 List getClientOutHandlers()
           
 List getClientServices()
           
 String getClientTransport()
           
 Map getExtraProperties()
           
 String getProtocol()
           
protected  Object getReceiverKey(UMOComponent component, UMOEndpoint endpoint)
          The method determines the key used to store the receiver against.
 List getServerInHandlers()
           
 List getServerOutHandlers()
           
 org.codehaus.xfire.service.ServiceFactory getServiceFactory()
           
 String getServiceTransport()
           
 String getTypeMappingRegistry()
           
 org.codehaus.xfire.XFire getXfire()
           
 boolean isEnableJSR181Annotations()
           
 void onNotification(UMOServerNotification event)
           
protected  void registerProtocols()
           
protected  void registerReceiverWithMuleService(UMOMessageReceiver receiver, UMOEndpointURI ep)
           
 void setBindingProvider(String bindingProvider)
           
 void setClientInHandlers(List handlers)
           
 void setClientOutHandlers(List handlers)
           
 void setClientServices(List clientServices)
           
 void setClientTransport(String transportClass)
           
 void setEnableJSR181Annotations(boolean enableJSR181Annotations)
           
 void setExtraProperties(Map extraProperties)
           
 void setServerInHandlers(List serverInHandlers)
           
 void setServerOutHandlers(List serverOutHandlers)
           
 void setServiceFactory(org.codehaus.xfire.service.ServiceFactory serviceFactory)
           
 void setServiceTransport(String transportClass)
           
 void setTypeMappingRegistry(String typeMappingRegistry)
           
 void setXfire(org.codehaus.xfire.XFire xfire)
           
 
Methods inherited from class org.mule.providers.AbstractConnector
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformer, getDefaultOutboundTransformer, getDefaultResponseTransformer, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMessageAdapter, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getStreamMessageAdapter, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isStarted, lookupReceiver, receive, receive, registerListener, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDefaultInboundTransformer, setDefaultOutboundTransformer, setDefaultResponseTransformer, setDispatcherFactory, setDispatcherThreadingProfile, setEnableMessageEvents, setExceptionListener, setMaxDispatchersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, startConnector, stopConnector, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, workAccepted, workCompleted, workRejected, workStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XFIRE_SERVICE_COMPONENT_NAME

public static final String XFIRE_SERVICE_COMPONENT_NAME
See Also:
Constant Field Values

DEFAULT_MULE_NAMESPACE_URI

public static final String DEFAULT_MULE_NAMESPACE_URI
See Also:
Constant Field Values

XFIRE_PROPERTY

public static final String XFIRE_PROPERTY
See Also:
Constant Field Values

XFIRE_TRANSPORT

public static final String XFIRE_TRANSPORT
See Also:
Constant Field Values

CLASSNAME_ANNOTATIONS

public static final String CLASSNAME_ANNOTATIONS
See Also:
Constant Field Values

xfireDescriptor

protected MuleDescriptor xfireDescriptor
Constructor Detail

XFireConnector

public XFireConnector()
Method Detail

registerProtocols

protected void registerProtocols()

getProtocol

public String getProtocol()
Specified by:
getProtocol in interface UMOConnector
Returns:
the primary protocol name for endpoints of this connector

doInitialise

protected void doInitialise()
                     throws InitialisationException
Specified by:
doInitialise in class AbstractConnector
Throws:
InitialisationException

configureBindingProvider

protected void configureBindingProvider(org.codehaus.xfire.service.binding.ObjectServiceFactory factory)
                                 throws InitialisationException
Throws:
InitialisationException

doDispose

protected void doDispose()
Description copied from class: AbstractConnector
Template method to perform any work when destroying the connectoe

Specified by:
doDispose in class AbstractConnector

doConnect

protected void doConnect()
                  throws Exception
Description copied from class: AbstractConnector
Template method where any connections should be made for the connector

Specified by:
doConnect in class AbstractConnector
Throws:
Exception

doDisconnect

protected void doDisconnect()
                     throws Exception
Description copied from class: AbstractConnector
Template method where any connected resources used by the connector should be disconnected

Specified by:
doDisconnect in class AbstractConnector
Throws:
Exception

doStart

protected void doStart()
                throws UMOException
Description copied from class: AbstractConnector
Template method to perform any work when starting the connectoe

Specified by:
doStart in class AbstractConnector
Throws:
UMOException - if the method fails

doStop

protected void doStop()
               throws UMOException
Description copied from class: AbstractConnector
Template method to perform any work when stopping the connectoe

Specified by:
doStop in class AbstractConnector
Throws:
UMOException - if the method fails

getXfire

public org.codehaus.xfire.XFire getXfire()

setXfire

public void setXfire(org.codehaus.xfire.XFire xfire)

registerReceiverWithMuleService

protected void registerReceiverWithMuleService(UMOMessageReceiver receiver,
                                               UMOEndpointURI ep)
                                        throws UMOException
Throws:
UMOException

createxfireDescriptor

protected MuleDescriptor createxfireDescriptor()

getServiceFactory

public org.codehaus.xfire.service.ServiceFactory getServiceFactory()

setServiceFactory

public void setServiceFactory(org.codehaus.xfire.service.ServiceFactory serviceFactory)

getReceiverKey

protected Object getReceiverKey(UMOComponent component,
                                UMOEndpoint endpoint)
The method determines the key used to store the receiver against.

Overrides:
getReceiverKey in class AbstractConnector
Parameters:
component - the component for which the endpoint is being registered
endpoint - the endpoint being registered for the component
Returns:
the key to store the newly created receiver against. In this case it is the component name, which is equivilent to the Axis service name.

isEnableJSR181Annotations

public boolean isEnableJSR181Annotations()

setEnableJSR181Annotations

public void setEnableJSR181Annotations(boolean enableJSR181Annotations)

getClientServices

public List getClientServices()

setClientServices

public void setClientServices(List clientServices)

getClientInHandlers

public List getClientInHandlers()

setClientInHandlers

public void setClientInHandlers(List handlers)

getClientOutHandlers

public List getClientOutHandlers()

setClientOutHandlers

public void setClientOutHandlers(List handlers)

getClientTransport

public String getClientTransport()

setClientTransport

public void setClientTransport(String transportClass)

getServiceTransport

public String getServiceTransport()

setServiceTransport

public void setServiceTransport(String transportClass)

getBindingProvider

public String getBindingProvider()

setBindingProvider

public void setBindingProvider(String bindingProvider)

getTypeMappingRegistry

public String getTypeMappingRegistry()

setTypeMappingRegistry

public void setTypeMappingRegistry(String typeMappingRegistry)

onNotification

public void onNotification(UMOServerNotification event)
Specified by:
onNotification in interface UMOServerNotificationListener

getServerInHandlers

public List getServerInHandlers()

setServerInHandlers

public void setServerInHandlers(List serverInHandlers)

getServerOutHandlers

public List getServerOutHandlers()

setServerOutHandlers

public void setServerOutHandlers(List serverOutHandlers)

getExtraProperties

public Map getExtraProperties()

setExtraProperties

public void setExtraProperties(Map extraProperties)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.