org.mule.umo.provider
Interface UMOMessageReceiver
- All Superinterfaces:
- Disposable, Lifecycle, Startable, Stoppable, UMOConnectable
- All Known Implementing Classes:
- AbstractMessageReceiver, AbstractPollingMessageReceiver, AxisMessageReceiver, EjbMessageReceiver, FileMessageReceiver, FtpMessageReceiver, HttpMessageReceiver, HttpsMessageReceiver, JbiMessageReceiver, JdbcMessageReceiver, JettyHttpMessageReceiver, JmsMessageReceiver, MulticastMessageReceiver, MultiConsumerJmsMessageReceiver, OracleJmsMessageReceiver, PollingHttpMessageReceiver, ProcessMessageReceiver, QuartzMessageReceiver, RetrieveMessageReceiver, RmiCallbackMessageReceiver, RmiMessageReceiver, ServletMessageReceiver, SingleJmsMessageReceiver, SslMessageReceiver, StreamMessageReceiver, TcpMessageReceiver, TcpStreamingMessageReceiver, TransactedPollingMessageReceiver, TransactedSingleResourceJmsMessageReceiver, UdpMessageReceiver, VMMessageReceiver, WebsphereTransactedJmsMessageReceiver, XaTransactedJmsMessageReceiver, XFireMessageReceiver, XmppMessageReceiver
public interface UMOMessageReceiver
- extends Lifecycle, UMOConnectable
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 receiver 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 its data.
Methods inherited from interface org.mule.umo.lifecycle.Startable |
start |
Methods inherited from interface org.mule.umo.lifecycle.Stoppable |
stop |
getEndpoint
UMOEndpoint getEndpoint()
- Returns:
- the receivers endpoint
getComponent
UMOComponent getComponent()
- Returns:
- the component associated with the receiver
setEndpoint
void setEndpoint(UMOEndpoint endpoint)
- Parameters:
endpoint
- the endpoint to listen on- See Also:
UMOEndpoint
setComponent
void setComponent(UMOComponent component)
- Parameters:
component
- the component to associate with the receiver. When data is
received the component dispatchEvent
or
sendEvent
is used to dispatch the data to the
relivant UMO.
setConnector
void setConnector(UMOConnector connector)
getConnector
UMOConnector getConnector()
getEndpointURI
UMOEndpointURI getEndpointURI()
- The endpointUri that this receiver listens on
- Returns:
getReceiverKey
String getReceiverKey()
setReceiverKey
void setReceiverKey(String key)
routeMessage
UMOMessage routeMessage(UMOMessage message)
throws UMOException
- Throws:
UMOException
routeMessage
UMOMessage routeMessage(UMOMessage message,
boolean synchronous)
throws UMOException
- Throws:
UMOException
routeMessage
UMOMessage routeMessage(UMOMessage message,
UMOTransaction trans,
boolean synchronous)
throws UMOException
- Throws:
UMOException
routeMessage
UMOMessage routeMessage(UMOMessage message,
OutputStream outputStream)
throws UMOException
- Throws:
UMOException
routeMessage
UMOMessage routeMessage(UMOMessage message,
boolean synchronous,
OutputStream outputStream)
throws UMOException
- Throws:
UMOException
routeMessage
UMOMessage routeMessage(UMOMessage message,
UMOTransaction trans,
boolean synchronous,
OutputStream outputStream)
throws UMOException
- Throws:
UMOException
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.