|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ws.frameworks.cometd.ContinuationService
public class ContinuationService
Created by The eXo Platform SAS.
| Constructor Summary | |
|---|---|
ContinuationService(EXoContinuationBayeux bayeux)
|
|
| Method Summary | |
|---|---|
EXoContinuationClient |
getClient(java.lang.String id)
|
EXoContinuationClient |
getClientByExoId(java.lang.String exoId)
|
java.util.Collection<dojox.cometd.Client> |
getClients()
|
long |
getTimeout()
|
java.lang.String |
getUserToken(java.lang.String eXoId)
|
boolean |
hasChannel(java.lang.String channel)
|
boolean |
isSubscribe(java.lang.String eXoId,
java.lang.String channel)
|
void |
sendBroadcastMessage(java.lang.String channel,
java.lang.Object data)
Send message to all client that listen channel. |
void |
sendBroadcastMessage(java.lang.String channel,
java.lang.Object data,
java.lang.String msgId)
Send message to all client that listen channel. |
void |
sendMessage(java.lang.String eXoId,
java.lang.String channel,
java.lang.Object data)
Send individual message to client. |
void |
sendMessage(java.lang.String eXoId,
java.lang.String channel,
java.lang.Object data,
java.lang.String id)
Send individual message to client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContinuationService(EXoContinuationBayeux bayeux)
bayeux - | Method Detail |
|---|
public void sendMessage(java.lang.String eXoId,
java.lang.String channel,
java.lang.Object data)
eXoId - the user IDchannel - the channel you want to send the message. The client must
listen to this channel to receive itdata - the data you want to send to the client
public void sendMessage(java.lang.String eXoId,
java.lang.String channel,
java.lang.Object data,
java.lang.String id)
eXoId - the user IDchannel - the channel you want to send the message. The client must
listen to this channel to receive itdata - the data you want to send to the clientid - the id of message if you set null will be generate automaticallypublic EXoContinuationClient getClientByExoId(java.lang.String exoId)
exoId - the id of client (exoId).
public EXoContinuationClient getClient(java.lang.String id)
id - the id of client (cometd id)
public java.util.Collection<dojox.cometd.Client> getClients()
public boolean hasChannel(java.lang.String channel)
channel - the channel id.
public long getTimeout()
public boolean isSubscribe(java.lang.String eXoId,
java.lang.String channel)
eXoId - the client id (as eXoId).channel - the id of channel.
public void sendBroadcastMessage(java.lang.String channel,
java.lang.Object data)
channel - the id of channel that need send messagedata - that send
public void sendBroadcastMessage(java.lang.String channel,
java.lang.Object data,
java.lang.String msgId)
channel - the id of channel that need send messagedata - that sendmsgId - id of messagepublic java.lang.String getUserToken(java.lang.String eXoId)
eXoId - the client id (as eXoId).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||