net.commerce.zocalo.ajax.dispatch
Class MockBayeuxChannel
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockBayeuxChannel
public MockBayeuxChannel(java.lang.String uri,
java.lang.String clientId)
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()