org.mule.transport.ajax
Class AjaxMessageDispatcher
java.lang.Object
org.mule.transport.AbstractTransportMessageHandler
org.mule.transport.AbstractMessageDispatcher
org.mule.transport.ajax.AjaxMessageDispatcher
- All Implemented Interfaces:
- Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor, Connectable, MessageDispatcher, BayeuxAware
public class AjaxMessageDispatcher
- extends AbstractMessageDispatcher
- implements BayeuxAware
Will dispatch Mule events to ajax clients available in Bayeux that are listening to this endpoint.
Methods inherited from class org.mule.transport.AbstractTransportMessageHandler |
activate, connect, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doConnect, doDisconnect, doStart, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection |
Methods inherited from interface org.mule.api.lifecycle.Startable |
start |
Methods inherited from interface org.mule.api.lifecycle.Stoppable |
stop |
bayeux
protected org.mortbay.cometd.AbstractBayeux bayeux
cacheMessages
protected boolean cacheMessages
messageCacheSize
protected int messageCacheSize
messageCache
protected Buffer messageCache
channel
protected String channel
client
protected org.cometd.Client client
AjaxMessageDispatcher
public AjaxMessageDispatcher(OutboundEndpoint endpoint)
throws CreateException
- Throws:
CreateException
getBayeux
public org.mortbay.cometd.AbstractBayeux getBayeux()
- Specified by:
getBayeux
in interface BayeuxAware
setBayeux
public void setBayeux(org.mortbay.cometd.AbstractBayeux bayeux)
- Specified by:
setBayeux
in interface BayeuxAware
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise
in class AbstractTransportMessageHandler
- Throws:
InitialisationException
getClient
protected org.cometd.Client getClient()
doDispatch
protected void doDispatch(MuleEvent event)
throws Exception
- Specified by:
doDispatch
in class AbstractMessageDispatcher
- Throws:
Exception
deliver
protected void deliver(org.cometd.Client client,
String channel,
Object data)
doSend
protected MuleMessage doSend(MuleEvent event)
throws Exception
- Specified by:
doSend
in class AbstractMessageDispatcher
- Throws:
Exception
doDispose
protected void doDispose()
- Overrides:
doDispose
in class AbstractTransportMessageHandler
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.