net.commerce.zocalo.ajax.dispatch
Class MockBayeuxChannel

java.lang.Object
  extended by net.commerce.zocalo.ajax.dispatch.MockBayeuxChannel
All Implemented Interfaces:
dojox.cometd.Channel

public class MockBayeuxChannel
extends java.lang.Object
implements dojox.cometd.Channel


Constructor Summary
MockBayeuxChannel(java.lang.String uri, java.lang.String clientId)
           
 
Method Summary
 void addDataFilter(dojox.cometd.DataFilter filter)
           
 void clearEvents()
           
 java.util.Collection<dojox.cometd.DataFilter> getDataFilters()
           
 java.util.List getEvents(java.lang.String uriString)
           
 java.lang.String getId()
           
 java.util.Collection<dojox.cometd.Client> getSubscribers()
           
 boolean isPersistent()
           
static MockBayeuxChannel make(java.lang.String uri, java.lang.String clientId)
           
 void publish(dojox.cometd.Client fromClient, java.lang.Object data, java.lang.String msgId)
           
 boolean remove()
           
 dojox.cometd.DataFilter removeDataFilter(dojox.cometd.DataFilter filter)
           
 void setPersistent(boolean persistent)
           
 void subscribe(dojox.cometd.Client subscriber)
           
 void unsubscribe(dojox.cometd.Client subscriber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockBayeuxChannel

public MockBayeuxChannel(java.lang.String uri,
                         java.lang.String clientId)
Method Detail

publish

public void publish(dojox.cometd.Client fromClient,
                    java.lang.Object data,
                    java.lang.String msgId)
Specified by:
publish in interface dojox.cometd.Channel

remove

public boolean remove()
Specified by:
remove in interface dojox.cometd.Channel

getId

public java.lang.String getId()
Specified by:
getId in interface dojox.cometd.Channel

isPersistent

public boolean isPersistent()
Specified by:
isPersistent in interface dojox.cometd.Channel

setPersistent

public void setPersistent(boolean persistent)
Specified by:
setPersistent in interface dojox.cometd.Channel

subscribe

public void subscribe(dojox.cometd.Client subscriber)
Specified by:
subscribe in interface dojox.cometd.Channel

unsubscribe

public void unsubscribe(dojox.cometd.Client subscriber)
Specified by:
unsubscribe in interface dojox.cometd.Channel

getSubscribers

public java.util.Collection<dojox.cometd.Client> getSubscribers()
Specified by:
getSubscribers in interface dojox.cometd.Channel

addDataFilter

public void addDataFilter(dojox.cometd.DataFilter filter)
Specified by:
addDataFilter in interface dojox.cometd.Channel

removeDataFilter

public dojox.cometd.DataFilter removeDataFilter(dojox.cometd.DataFilter filter)
Specified by:
removeDataFilter in interface dojox.cometd.Channel

getDataFilters

public java.util.Collection<dojox.cometd.DataFilter> getDataFilters()
Specified by:
getDataFilters in interface dojox.cometd.Channel

make

public static MockBayeuxChannel make(java.lang.String uri,
                                     java.lang.String clientId)

getEvents

public java.util.List getEvents(java.lang.String uriString)

clearEvents

public void clearEvents()