|
||||||||||
| 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
| Method Summary | |
|---|---|
void |
addChild(ChannelImpl channel)
|
void |
addDataFilter(DataFilter filter)
|
ChannelId |
getChannelId()
|
ChannelImpl |
getChild(ChannelId id)
|
String |
getId()
|
String |
getToken(Client client,
boolean subscribe,
boolean send,
boolean oneTime)
|
boolean |
isPersistent()
Is the channel persistent. |
protected void |
publish(ChannelId to,
Client from,
Map<String,Object> msg)
|
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 |
| 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 publish(ChannelId to,
Client from,
Map<String,Object> msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||