public class EXoContinuationBayeux
extends org.mortbay.cometd.continuation.EXoContinuationBayeux
| Modifier and Type | Class and Description |
|---|---|
static class |
EXoContinuationBayeux.EXoSecurityPolicy |
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.cometd.bayeux.server.BayeuxServer.BayeuxServerListener, org.cometd.bayeux.server.BayeuxServer.ChannelListener, org.cometd.bayeux.server.BayeuxServer.Extension, org.cometd.bayeux.server.BayeuxServer.SessionListener, org.cometd.bayeux.server.BayeuxServer.SubscriptionListenerALLOWED_TRANSPORTS_OPTION, BROADCAST_TO_PUBLISHER_OPTION, SWEEP_PERIOD_OPTION, TRANSPORTS_OPTION, VALIDATE_MESSAGE_FIELDS_OPTION| Constructor and Description |
|---|
EXoContinuationBayeux(org.exoplatform.chat.services.TokenService tokenService)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getUserToken(String eXoId) |
boolean |
isPresent(String eXoID) |
boolean |
isSubscribed(String eXoID,
String clientID) |
void |
sendBroadcastMessage(String channel,
Object data,
String msgId) |
void |
sendMessage(String eXoID,
String channel,
Object data,
String id)
Send data to a individual client.
|
void |
setCloudIDSeparator(String cloudIDSeparator) |
void |
setOort(org.cometd.oort.Oort oort) |
void |
setSeti(org.cometd.oort.Seti seti) |
getClientByEXoId, getCometdContextName, getServletConfig, getTimeout, newRemoteClient, setCometdContextName, setServletConfig, setTimeoutaddExtension, addListener, addServerSession, addTransport, createChannelIfAbsent, createReply, doPublish, doStart, doStop, dump, error, extendRecv, extendReply, extendSend, findHttpTransport, freeze, getAllowedTransports, getChannel, getChannels, getContext, getCurrentTransport, getExtensions, getKnownTransportNames, getListeners, getOption, getOption, getOption, getOptionNames, getOptions, getSecurityPolicy, getSession, getSessions, getTransport, getTransports, handle, initializeJSONContext, initializeMetaChannels, initializeServerTransports, isBroadcastToPublisher, newChannelId, newLocalSession, newMessage, newMessage, newServerSession, randomLong, removeExtension, removeListener, removeServerChannel, removeServerSession, schedule, setAllowedTransports, setAllowedTransports, setCurrentTransport, setOption, setOptions, setSecurityPolicy, setTransports, setTransports, sweep, unknownSession, validateMessagepublic EXoContinuationBayeux(org.exoplatform.chat.services.TokenService tokenService)
public String getUserToken(String eXoId)
getUserToken in class org.mortbay.cometd.continuation.EXoContinuationBayeuxeXoId - the client id.public boolean isSubscribed(String eXoID, String clientID)
isSubscribed in class org.mortbay.cometd.continuation.EXoContinuationBayeuxpublic boolean isPresent(String eXoID)
isPresent in class org.mortbay.cometd.continuation.EXoContinuationBayeuxpublic void sendBroadcastMessage(String channel, Object data, String msgId)
sendBroadcastMessage in class org.mortbay.cometd.continuation.EXoContinuationBayeuxchannel - the id of channel.data - the messagemsgId - the message idpublic void sendMessage(String eXoID, String channel, Object data, String id)
Typcially this method is only required if a service method sends response(s) to channels other than the subscribed channel. If the response is to be sent to the subscribed channel, then the data can simply be returned from the subscription method.
sendMessage in class org.mortbay.cometd.continuation.EXoContinuationBayeuxeXoID - the id of target clientchannel - The id of channel the message is fordata - The data of the messageid - The id of the message (or null for a random id).public void setSeti(org.cometd.oort.Seti seti)
setSeti in class org.mortbay.cometd.continuation.EXoContinuationBayeuxpublic void setOort(org.cometd.oort.Oort oort)
setOort in class org.mortbay.cometd.continuation.EXoContinuationBayeuxpublic void setCloudIDSeparator(String cloudIDSeparator)
setCloudIDSeparator in class org.mortbay.cometd.continuation.EXoContinuationBayeuxpublic void dispose()
dispose in interface org.picocontainer.Disposabledispose in class org.mortbay.cometd.continuation.EXoContinuationBayeuxCopyright © 2003–2020 eXo Platform SAS. All rights reserved.