|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.cometd.ClientImpl
public class ClientImpl
| Field Summary | |
|---|---|
protected AbstractBayeux |
_bayeux
|
| Constructor Summary | |
|---|---|
protected |
ClientImpl(AbstractBayeux bayeux)
|
protected |
ClientImpl(AbstractBayeux bayeux,
String idPrefix)
|
protected |
ClientImpl(AbstractBayeux bayeux,
String idPrefix,
dojox.cometd.Listener listener)
Deprecated. |
| Method Summary | |
|---|---|
void |
addListener(EventListener listener)
|
protected void |
addSubscription(ChannelImpl channel)
|
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)
|
protected void |
doDelivery(dojox.cometd.Client from,
dojox.cometd.Message message)
|
void |
endBatch()
|
boolean |
equals(Object o)
|
int |
getAdviceVersion()
|
String |
getBrowserId()
|
String |
getConnectionType()
|
String |
getId()
|
dojox.cometd.Listener |
getListener()
|
int |
getMessages()
|
long |
getTimeout()
|
boolean |
hasMessages()
|
boolean |
isJSONCommented()
|
boolean |
isLocal()
|
void |
publish(String toChannel,
Object data,
String msgId)
Deprecated. use Channel#publish(Client, Object, String) |
void |
remove(boolean timeout)
|
void |
removeListener(EventListener listener)
|
protected void |
removeSubscription(ChannelImpl channel)
|
int |
responded()
|
int |
responsePending()
|
void |
resume()
Called by deliver to resume anything waiting on this client. |
void |
returnMessage(dojox.cometd.Message message)
|
void |
returnMessages(List<dojox.cometd.Message> messages)
|
void |
setAdviceVersion(int version)
|
void |
setBrowserId(String id)
|
protected void |
setConnectionType(String type)
|
protected void |
setId(String _id)
|
void |
setJSONCommented(boolean commented)
|
void |
setListener(dojox.cometd.Listener listener)
|
void |
setTimeout(long timeoutMS)
|
void |
startBatch()
|
void |
subscribe(String toChannel)
Deprecated. use Channel#subscribe(Client) |
dojox.cometd.Message |
takeMessage()
|
List<dojox.cometd.Message> |
takeMessages()
|
String |
toString()
|
void |
unsubscribe(String toChannel)
Deprecated. use Channel#unsubscribe(Client) |
protected void |
unsubscribeAll()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AbstractBayeux _bayeux
| Constructor Detail |
|---|
protected ClientImpl(AbstractBayeux bayeux)
protected ClientImpl(AbstractBayeux bayeux,
String idPrefix)
protected ClientImpl(AbstractBayeux bayeux,
String idPrefix,
dojox.cometd.Listener listener)
| Method Detail |
|---|
public void publish(String toChannel,
Object data,
String msgId)
Channel#publish(Client, Object, String)
publish in interface dojox.cometd.ClientClient.publish(java.lang.String, java.lang.Object, java.lang.String)public void subscribe(String toChannel)
Channel#subscribe(Client)
subscribe in interface dojox.cometd.ClientClient.subscribe(java.lang.String)public void unsubscribe(String toChannel)
Channel#unsubscribe(Client)
unsubscribe in interface dojox.cometd.ClientClient.unsubscribe(java.lang.String)
public void deliver(dojox.cometd.Client from,
dojox.cometd.Message message)
deliver(Client, String, Object, String)
deliver in interface dojox.cometd.Client
public void deliver(dojox.cometd.Client from,
String toChannel,
Object data,
String id)
deliver in interface dojox.cometd.Client
protected void doDelivery(dojox.cometd.Client from,
dojox.cometd.Message message)
public void startBatch()
startBatch in interface dojox.cometd.Clientpublic void endBatch()
endBatch in interface dojox.cometd.Clientpublic String getConnectionType()
public String getId()
getId in interface dojox.cometd.Clientpublic boolean hasMessages()
hasMessages in interface dojox.cometd.Clientpublic boolean isJSONCommented()
public boolean isLocal()
isLocal in interface dojox.cometd.Clientpublic void remove(boolean timeout)
public int responded()
public int responsePending()
public void resume()
public void setJSONCommented(boolean commented)
commented - the commented to setpublic void setListener(dojox.cometd.Listener listener)
setListener in interface dojox.cometd.Clientpublic dojox.cometd.Listener getListener()
getListener in interface dojox.cometd.Clientpublic int getMessages()
public List<dojox.cometd.Message> takeMessages()
takeMessages in interface dojox.cometd.Clientpublic void returnMessages(List<dojox.cometd.Message> messages)
public dojox.cometd.Message takeMessage()
public void returnMessage(dojox.cometd.Message message)
public String toString()
toString in class Objectprotected void addSubscription(ChannelImpl channel)
protected void removeSubscription(ChannelImpl channel)
protected void setConnectionType(String type)
protected void setId(String _id)
protected void unsubscribeAll()
public void setBrowserId(String id)
public String getBrowserId()
public boolean equals(Object o)
equals in class Objectpublic int getAdviceVersion()
public void setAdviceVersion(int version)
advised - the advised to setpublic void addListener(EventListener listener)
addListener in interface dojox.cometd.Clientpublic void removeListener(EventListener listener)
removeListener in interface dojox.cometd.Clientpublic long getTimeout()
public void setTimeout(long timeoutMS)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||