org.mule.transport.ajax
Class AjaxMessageDispatcher
java.lang.Object
org.mule.transport.AbstractConnectable
org.mule.transport.AbstractMessageDispatcher
org.mule.transport.ajax.AjaxMessageDispatcher
- All Implemented Interfaces:
- ExceptionListener, Disposable, Initialisable, Startable, Stoppable, Connectable, MessageDispatcher, MessageDispatching
public class AjaxMessageDispatcher
- extends AbstractMessageDispatcher
Will dispatch Mule events to ajax clients available in Bayeux that are listening to this endpoint.
| Methods inherited from class org.mule.transport.AbstractConnectable |
activate, connect, disconnect, disposeAndLogException, doConnect, doDisconnect, doStart, doStop, exceptionThrown, getConnectEventId, getConnectionDescription, getConnector, handleException, isConnected, isDoThreading, isStarted, 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
AjaxMessageDispatcher
public AjaxMessageDispatcher(OutboundEndpoint endpoint)
getBayeux
public org.mortbay.cometd.AbstractBayeux getBayeux()
setBayeux
public void setBayeux(org.mortbay.cometd.AbstractBayeux bayeux)
doInitialise
protected void doInitialise()
throws InitialisationException
- Overrides:
doInitialise in class AbstractConnectable
- Throws:
InitialisationException
doDispatch
protected void doDispatch(MuleEvent event)
throws Exception
- Specified by:
doDispatch in class AbstractMessageDispatcher
- Throws:
Exception
deliver
protected void deliver(dojox.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 AbstractConnectable
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.