| java.lang.Object org.mortbay.cometd.Channel
Channel | public class Channel (Code) | | A Bayuex Channel
author: gregw |
Method Summary | |
public void | addDataFilter(DataFilter filter) | public void | addSubscriber(Client client) | public String | getId() | public String | getToken(Client client, boolean subscribe, boolean send, boolean oneTime) Parameters: client - The client for which this token will be valid Parameters: subscribe - True if this token may be used for subscriptions Parameters: send - True if this token may be used for send Parameters: oneTime - True if this token may only be used in one request batch. | public void | publish(Object data, Client from) Publish data to a the channel.
Parameters: data - The data object - The data object is filtered by the channel filters and then any client specific filters. | public void | removeDataFilter(DataFilter filter) | public void | removeSubscriber(Client client) | public String | toString() |
addDataFilter | public void addDataFilter(DataFilter filter)(Code) | | Parameters: filter - |
addSubscriber | public void addSubscriber(Client client)(Code) | | Parameters: client - |
getToken | public String getToken(Client client, boolean subscribe, boolean send, boolean oneTime)(Code) | | Parameters: client - The client for which this token will be valid Parameters: subscribe - True if this token may be used for subscriptions Parameters: send - True if this token may be used for send Parameters: oneTime - True if this token may only be used in one request batch. A new token that can be used for subcriptions and or sending. |
publish | public void publish(Object data, Client from)(Code) | | Publish data to a the channel.
Parameters: data - The data object - The data object is filtered by the channel filters and then any client specific filters. It is then set as the "data" field of a Bayuex message mapbefore being passed to the Client.deliver(java.util.Map) method. If not converted by the filters,the data will be converted in deliver to JSON by the JSON.toString(Object) method. Parameters: from - The client sending the data or null for anonymous delivery. |
removeDataFilter | public void removeDataFilter(DataFilter filter)(Code) | | Parameters: filter - |
removeSubscriber | public void removeSubscriber(Client client)(Code) | | Parameters: client - |
|
|