|
||||||||||
| 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(String id)
|
EXoContinuationClient |
getClientByExoId(String exoId)
|
Collection<dojox.cometd.Client> |
getClients()
|
long |
getTimeout()
|
String |
getUserToken(String eXoId)
|
boolean |
hasChannel(String channel)
|
boolean |
isSubscribe(String eXoId,
String channel)
|
void |
sendBroadcastMessage(String channel,
Object data)
Send message to all client that listen channel. |
void |
sendBroadcastMessage(String channel,
Object data,
String msgId)
Send message to all client that listen channel. |
void |
sendMessage(String eXoId,
String channel,
Object data)
Send individual message to client. |
void |
sendMessage(String eXoId,
String channel,
Object data,
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(String eXoId,
String channel,
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(String eXoId,
String channel,
Object data,
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(String exoId)
exoId - the id of client (exoId).
public EXoContinuationClient getClient(String id)
id - the id of client (cometd id)
public Collection<dojox.cometd.Client> getClients()
public boolean hasChannel(String channel)
channel - the channel id.
public long getTimeout()
public boolean isSubscribe(String eXoId,
String channel)
eXoId - the client id (as eXoId).channel - the id of channel.
public void sendBroadcastMessage(String channel,
Object data)
channel - the id of channel that need send messagedata - that send
public void sendBroadcastMessage(String channel,
Object data,
String msgId)
channel - the id of channel that need send messagedata - that sendmsgId - id of messagepublic String getUserToken(String eXoId)
eXoId - the client id (as eXoId).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||