org.mortbay.cometd
Class ChannelImpl

java.lang.Object
  extended by org.mortbay.cometd.ChannelImpl
All Implemented Interfaces:
dojox.cometd.Channel
Direct Known Subclasses:
AbstractBayeux.ServiceChannel

public class ChannelImpl
extends Object
implements dojox.cometd.Channel

A Bayuex Channel

Author:
gregw

Field Summary
protected  AbstractBayeux _bayeux
           
 
Method Summary
 void addChild(ChannelImpl channel)
           
 void addDataFilter(dojox.cometd.DataFilter filter)
           
protected  void doDelivery(ChannelId to, dojox.cometd.Client from, dojox.cometd.Message msg)
           
 ChannelId getChannelId()
           
 void getChannels(List<dojox.cometd.Channel> list)
           
 ChannelImpl getChild(ChannelId id)
           
 Collection<dojox.cometd.DataFilter> getDataFilters()
           
 String getId()
           
 Collection<dojox.cometd.Client> getSubscribers()
           
 boolean isPersistent()
           
 void publish(dojox.cometd.Client fromClient, Object data, String msgId)
           
 boolean remove()
           
 dojox.cometd.DataFilter removeDataFilter(dojox.cometd.DataFilter filter)
           
 void setPersistent(boolean persistent)
           
 void subscribe(dojox.cometd.Client client)
           
 String toString()
           
 void unsubscribe(dojox.cometd.Client client)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_bayeux

protected AbstractBayeux _bayeux
Method Detail

addChild

public void addChild(ChannelImpl channel)

addDataFilter

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

getChannelId

public ChannelId getChannelId()
Returns:

getChild

public ChannelImpl getChild(ChannelId id)

getChannels

public void getChannels(List<dojox.cometd.Channel> list)

getId

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

isPersistent

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

publish

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

remove

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

removeDataFilter

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

setPersistent

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

subscribe

public void subscribe(dojox.cometd.Client client)
Specified by:
subscribe in interface dojox.cometd.Channel
Parameters:
client -

toString

public String toString()
Overrides:
toString in class Object

unsubscribe

public void unsubscribe(dojox.cometd.Client client)
Specified by:
unsubscribe in interface dojox.cometd.Channel
Parameters:
client -

doDelivery

protected void doDelivery(ChannelId to,
                          dojox.cometd.Client from,
                          dojox.cometd.Message msg)

getSubscribers

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

getDataFilters

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


Copyright © 2008 Mort Bay Consulting. All Rights Reserved.