| Modifier and Type | Method and Description |
|---|---|
Client |
Bayeux.getClient(String clientId)
Get
Client by ID. |
Client |
Bayeux.newClient(String idprefix)
Create a new server side Client.
|
Client |
Bayeux.removeClient(String clientId) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Client> |
Bayeux.getClients()
Get a collection of all Clients.
|
Collection<Client> |
Channel.getSubscribers() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SecurityPolicy.canCreate(Client client,
String channel,
Message message)
Test if a message should be allowed to create a new Channel
|
boolean |
SecurityPolicy.canPublish(Client client,
String channel,
Message messsage)
Test if a client can publish a message to a channel
|
boolean |
SecurityPolicy.canSubscribe(Client client,
String channel,
Message messsage)
Test if a client is allowed to subscribe to a channel
|
void |
ClientBayeuxListener.clientAdded(Client client) |
void |
ClientBayeuxListener.clientRemoved(Client client) |
void |
MessageListener.deliver(Client fromClient,
Client toClient,
Message msg)
Called when a message is delivered to the client
|
void |
DeliverListener.deliver(Client client,
Queue<Message> queue)
callback to notify that the queue is about to be sent to the
client.
|
void |
Client.deliver(Client from,
String toChannel,
Object data,
String id) |
Object |
DataFilter.filter(Client from,
Channel to,
Object data) |
void |
Channel.publish(Client fromClient,
Object data,
String msgId)
Publish a message.
|
boolean |
QueueListener.queueMaxed(Client client,
Message message)
Call back to notify if a message for a client will result in the
message queue exceeding
getMaxQueue(). |
void |
Channel.subscribe(Client subscriber)
Subscribe to a channel.
|
void |
SubscriptionListener.subscribed(Client client,
Channel channel) |
void |
Channel.unsubscribe(Client subscriber)
Unsubscribe to a channel
|
void |
SubscriptionListener.unsubscribed(Client client,
Channel channel) |
Copyright © 2012 Dojo Foundation. All Rights Reserved.