|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
UMOConnector
is the mechanism used to connect to external
systems and protocols in order to send and receive data.
Method Summary | |
UMOMessageDispatcher |
getDispatcher(java.lang.String endpoint)
The connector can pool dispatchers based on their endpointUri or can ingnore the endpointUri altogether and use a ThreadLocal or always create new. |
UMOMessageDispatcherFactory |
getDispatcherFactory()
The dispatcher factory is used to create a message dispatcher of the current request |
java.beans.ExceptionListener |
getExceptionListener()
|
UMOMessageAdapter |
getMessageAdapter(java.lang.Object message)
Gets a UMOMessageAdapter for the endpoint for the given message (data) |
java.lang.String |
getName()
|
java.lang.String |
getProtocol()
|
void |
handleException(java.lang.Exception exception)
|
boolean |
isDisposed()
|
boolean |
isStarted()
|
UMOMessageReceiver |
registerListener(UMOComponent component,
UMOEndpoint endpoint)
This creates a UMOMessageReceiver associated with this endpoint and registers it
with the endpoint |
void |
setDispatcherFactory(UMOMessageDispatcherFactory factory)
The dispatcher factory is used to create a message dispatcher of the current request |
void |
setExceptionListener(java.beans.ExceptionListener listener)
|
void |
setName(java.lang.String newName)
|
void |
unregisterListener(UMOComponent component,
UMOEndpoint endpoint)
|
Methods inherited from interface org.mule.umo.lifecycle.Startable |
start |
Methods inherited from interface org.mule.umo.lifecycle.Stoppable |
stop |
Methods inherited from interface org.mule.umo.lifecycle.Disposable |
dispose |
Methods inherited from interface org.mule.umo.lifecycle.Initialisable |
initialise |
Method Detail |
public UMOMessageReceiver registerListener(UMOComponent component, UMOEndpoint endpoint) throws java.lang.Exception
UMOMessageReceiver
associated with this endpoint and registers it
with the endpoint
component
- the listening componentendpoint
- the endpoint contains the listener endpointUri on which to listen on.
java.lang.Exception
- if the UMOMessageReceiver cannot be created or the Receiver cannot be registeredpublic void unregisterListener(UMOComponent component, UMOEndpoint endpoint) throws java.lang.Exception
component
- the listening componentendpoint
- the associated endpointDescriptor with the listener
java.lang.Exception
- if the listener cannot be unregistered. If a listener is not
associated with the given endpoint this will not throw an exceptionpublic boolean isStarted()
public boolean isDisposed()
public UMOMessageAdapter getMessageAdapter(java.lang.Object message) throws MessagingException
UMOMessageAdapter
for the endpoint for the given message (data)
message
- the data with which to initialise the UMOMessageAdapter
UMOMessageAdapter
for the endpoint
MessagingException
- if the message parameter is not supportedUMOMessageAdapter
public java.lang.String getName()
public void setName(java.lang.String newName)
newName
- the name to associate with the endpointpublic java.lang.String getProtocol()
public UMOMessageDispatcher getDispatcher(java.lang.String endpoint) throws UMOException
endpoint
- the endpointUri that can be used to key cached dispatchers
UMOException
- if creation of a component failspublic void setExceptionListener(java.beans.ExceptionListener listener)
listener
- the exception strategy to use with this endpointUMOExceptionStrategy
public java.beans.ExceptionListener getExceptionListener()
UMOExceptionStrategy
public void handleException(java.lang.Exception exception)
exception
- the exception that was caughtpublic void setDispatcherFactory(UMOMessageDispatcherFactory factory)
factory
- the factory to use when a dispatcher request is madrpublic UMOMessageDispatcherFactory getDispatcherFactory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |