Package | Description |
---|---|
org.apache.cometd.bayeux | |
org.apache.tomcat.bayeux |
Modifier and Type | Method and Description |
---|---|
Client |
Message.getClient()
Returns a reference to the client that sent this message
|
Client |
Bayeux.getClient(String clientid)
retrieve a client based on an ID.
|
Client |
Bayeux.newClient(String idprefix,
Listener listener)
Creates a new server side client.
|
Client |
Bayeux.remove(Client client)
Removes the client all together.
|
Client |
Channel.unsubscribe(Client subscriber)
Unsubscribes a client from a channel
|
Modifier and Type | Method and Description |
---|---|
List<Client> |
Bayeux.getClients()
Returns a non modifiable list of all the clients that are currently active
in this Bayeux session
|
List<Client> |
Channel.getSubscribers()
returns a non modifiable list of all the subscribers to this
channel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SecurityPolicy.canCreate(Client client,
String channel,
Message message) |
boolean |
SecurityPolicy.canPublish(Client client,
String channel,
Message messsage) |
boolean |
SecurityPolicy.canSubscribe(Client client,
String channel,
Message messsage) |
Message |
Bayeux.newMessage(Client from)
Creates a new message to be sent by a server side client.
|
Client |
Bayeux.remove(Client client)
Removes the client all together.
|
void |
Channel.subscribe(Client subscriber)
Subscribes a client to a channel.
|
Client |
Channel.unsubscribe(Client subscriber)
Unsubscribes a client from a channel
|
Modifier and Type | Class and Description |
---|---|
class |
ClientImpl |
Modifier and Type | Field and Description |
---|---|
protected Client |
MessageImpl.client |
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Client> |
TomcatBayeux.clients
a list of all active clients
|
protected LinkedList<Client> |
ChannelImpl.subscribers
A list of the current subscribers
|
Modifier and Type | Method and Description |
---|---|
Client |
MessageImpl.getClient() |
Client |
TomcatBayeux.getClient(String clientId) |
Client |
TomcatBayeux.newClient(String idprefix,
Listener listener) |
Client |
TomcatBayeux.newClient(String idprefix,
Listener listener,
boolean local,
HttpEvent event) |
Client |
TomcatBayeux.remove(Client client) |
Client |
ChannelImpl.unsubscribe(Client subscriber) |
Modifier and Type | Method and Description |
---|---|
List<Client> |
TomcatBayeux.getClients() |
List<Client> |
ChannelImpl.getSubscribers() |
Modifier and Type | Method and Description |
---|---|
Message |
TomcatBayeux.newMessage(Client from) |
Client |
TomcatBayeux.remove(Client client) |
protected void |
MessageImpl.setClient(Client client) |
void |
ChannelImpl.subscribe(Client subscriber) |
Client |
ChannelImpl.unsubscribe(Client subscriber) |
Copyright © 2013 JBoss by Red Hat. All rights reserved.