|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
UMOMessageReceiver
is used to receive data from an external system.
Typically an implementation of this interface will also implement the listener interface
for the external system. For example to listen to a JMS destination the developer would
also implement javax.jms.MessageListener. The endpoint (which creates the UMOMessageReceiver) will
then register the reciever with the JMS server. Where a listener interface is not availiable
the derived UMOMessageReceiver
will implement the code necessary to receive data from
the external system. For example, the file endpoint will poll a specified directory for it's data.
Method Summary | |
void |
create(UMOConnector connector,
UMOComponent component,
UMOEndpoint endpoint)
Creates the Message Receiver |
UMOComponent |
getComponent()
|
UMOConnector |
getConnector()
|
UMOEndpoint |
getEndpoint()
|
UMOEndpointURI |
getEndpointURI()
The endpointUri that this receiver listens on |
void |
handleException(java.lang.Object message,
java.lang.Throwable exception)
|
void |
setComponent(UMOComponent component)
|
void |
setConnector(UMOConnector connector)
|
void |
setEndpoint(UMOEndpoint endpoint)
|
Methods inherited from interface org.mule.umo.lifecycle.Disposable |
dispose |
Method Detail |
public void create(UMOConnector connector, UMOComponent component, UMOEndpoint endpoint) throws InitialisationException
connector
- the endpoint that created this listenercomponent
- the component to associate with the receiver. When data is recieved the component
dispatchEvent
or sendEvent
is used to dispatch the data to the relivant UMO.endpoint
- the proivder contains the endpointUri on which the
receiver will listen on. The endpointUri can be anything and is specific to
the receiver implementation i.e. an email address, a directory, a jms destination
or port address.
InitialisationException
UMOComponent
,
UMOEndpoint
public UMOEndpoint getEndpoint()
public void handleException(java.lang.Object message, java.lang.Throwable exception)
message
- exception
- public UMOComponent getComponent()
public void setEndpoint(UMOEndpoint endpoint)
endpoint
- the endpoint to listen onUMOEndpoint
public void setComponent(UMOComponent component)
component
- the component to associate with the receiver. When data is recieved the component
dispatchEvent
or sendEvent
is used to dispatch the data to the relivant UMO.public void setConnector(UMOConnector connector)
public UMOConnector getConnector()
public UMOEndpointURI getEndpointURI()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |