|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.cometd.MessagePool
org.mortbay.cometd.client.BayeuxClient
public class BayeuxClient
Bayeux protocol Client.
Implements a Bayeux Ajax Push client as part of the cometd project.
http://cometd.com| Constructor Summary | |
|---|---|
BayeuxClient(HttpClient client,
InetSocketAddress address,
String uri)
|
|
| Method Summary | |
|---|---|
void |
addListener(EventListener listener)
|
protected void |
customize(HttpExchange exchange)
Customize an Exchange. |
void |
deliver(dojox.cometd.Client from,
dojox.cometd.Message message)
Deprecated. use deliver(Client, String, Object, String) |
void |
deliver(dojox.cometd.Client from,
String toChannel,
Object data,
String id)
|
void |
endBatch()
|
String |
getId()
|
dojox.cometd.Listener |
getListener()
Deprecated. |
boolean |
hasMessages()
|
boolean |
isLocal()
|
boolean |
isPolling()
|
void |
publish(String toChannel,
Object data,
String msgId)
|
void |
remove(boolean timeout)
|
void |
removeListener(EventListener listener)
|
void |
setCookie(Cookie cookie)
|
void |
setListener(dojox.cometd.Listener listener)
Deprecated. |
void |
start()
|
void |
startBatch()
|
void |
subscribe(String toChannel)
|
List<dojox.cometd.Message> |
takeMessages()
|
void |
unsubscribe(String toChannel)
|
| Methods inherited from class org.mortbay.cometd.MessagePool |
|---|
getBatchJSON, getJSON, getMsgJSON, newMessage, newMessage, parse, parse, parseTo, recycleMessage, setBatchJSON, setJSON, setMsgJSON |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BayeuxClient(HttpClient client,
InetSocketAddress address,
String uri)
throws IOException
IOException| Method Detail |
|---|
public String getId()
getId in interface dojox.cometd.Clientpublic void start()
public boolean isPolling()
public void deliver(dojox.cometd.Client from,
dojox.cometd.Message message)
deliver(Client, String, Object, String)
deliver in interface dojox.cometd.Clientdojox.cometd.Client#deliver(dojox.cometd.Client, java.util.Map)
public void deliver(dojox.cometd.Client from,
String toChannel,
Object data,
String id)
deliver in interface dojox.cometd.Clientpublic dojox.cometd.Listener getListener()
getListener in interface dojox.cometd.Clientpublic boolean hasMessages()
hasMessages in interface dojox.cometd.Clientpublic boolean isLocal()
isLocal in interface dojox.cometd.Client
public void publish(String toChannel,
Object data,
String msgId)
publish in interface dojox.cometd.Clientpublic void subscribe(String toChannel)
subscribe in interface dojox.cometd.Clientpublic void unsubscribe(String toChannel)
unsubscribe in interface dojox.cometd.Clientpublic void remove(boolean timeout)
public void setListener(dojox.cometd.Listener listener)
setListener in interface dojox.cometd.Clientpublic List<dojox.cometd.Message> takeMessages()
takeMessages in interface dojox.cometd.Clientpublic void endBatch()
endBatch in interface dojox.cometd.Clientpublic void startBatch()
startBatch in interface dojox.cometd.Clientprotected void customize(HttpExchange exchange)
public void setCookie(Cookie cookie)
public void addListener(EventListener listener)
addListener in interface dojox.cometd.Clientpublic void removeListener(EventListener listener)
removeListener in interface dojox.cometd.Client
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||