|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.cometd.ChannelImpl
public class ChannelImpl
A Bayuex Channel
| Field Summary | |
|---|---|
protected AbstractBayeux |
_bayeux
|
| Method Summary | |
|---|---|
void |
addChild(ChannelImpl channel)
|
void |
addDataFilter(DataFilter filter)
|
protected void |
deliver(ChannelId to,
Client from,
Message msg)
|
ChannelId |
getChannelId()
|
ChannelImpl |
getChild(ChannelId id)
|
String |
getId()
|
int |
getSubscribers()
|
String |
getToken(Client client,
boolean subscribe,
boolean send,
boolean oneTime)
|
boolean |
isPersistent()
Is the channel persistent. |
void |
publish(Client fromClient,
Object data,
String msgId)
Publish a message This is equivalent to Bayeux.publish(fromClient,channel.getId(),data,msgId). |
boolean |
remove()
|
void |
removeDataFilter(DataFilter filter)
|
void |
setPersistent(boolean persistent)
|
void |
subscribe(Client client)
Subscribe to a channel. |
String |
toString()
|
void |
unsubscribe(Client client)
Unsubscribe to a channel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AbstractBayeux _bayeux
| Method Detail |
|---|
public void addChild(ChannelImpl channel)
public void addDataFilter(DataFilter filter)
filter - public ChannelId getChannelId()
public ChannelImpl getChild(ChannelId id)
public String getId()
getId in interface Channel
public String getToken(Client client,
boolean subscribe,
boolean send,
boolean oneTime)
client - The client for which this token will be validsubscribe - True if this token may be used for subscriptionssend - True if this token may be used for sendoneTime - True if this token may only be used in one request batch.
public boolean isPersistent()
Channel
isPersistent in interface Channel
public void publish(Client fromClient,
Object data,
String msgId)
Channel
publish in interface Channelpublic boolean remove()
remove in interface Channelpublic void removeDataFilter(DataFilter filter)
filter - public void setPersistent(boolean persistent)
setPersistent in interface Channelpersistent - true if the Channel will persist without any subscription.public void subscribe(Client client)
Channel
subscribe in interface Channelclient - public String toString()
toString in class Objectpublic void unsubscribe(Client client)
Channel
unsubscribe in interface Channelclient -
protected void deliver(ChannelId to,
Client from,
Message msg)
public int getSubscribers()
getSubscribers in interface Channel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||