Class EXoContinuationBayeux

  • All Implemented Interfaces:
    org.cometd.bayeux.Bayeux, org.cometd.bayeux.server.BayeuxServer, org.eclipse.jetty.util.component.LifeCycle, org.picocontainer.Disposable

    public class EXoContinuationBayeux
    extends org.cometd.server.BayeuxServerImpl
    implements org.picocontainer.Disposable
    Created by The eXo Platform SAS.
    Version:
    $Id: $
    Author:
    Vitaly Parfonov
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  EXoContinuationBayeux.EXoSecurityPolicy  
      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
      • Nested classes/interfaces inherited from interface org.cometd.bayeux.Bayeux

        org.cometd.bayeux.Bayeux.BayeuxListener
      • Nested classes/interfaces inherited from interface org.cometd.bayeux.server.BayeuxServer

        org.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.SubscriptionListener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.cometd.server.BayeuxServerImpl

        ALLOWED_TRANSPORTS_OPTION, BROADCAST_TO_PUBLISHER_OPTION, SWEEP_PERIOD_OPTION, TRANSPORTS_OPTION, VALIDATE_MESSAGE_FIELDS_OPTION
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
      • Fields inherited from interface org.cometd.bayeux.server.BayeuxServer

        ATTRIBUTE
    • Constructor Detail

      • EXoContinuationBayeux

        public EXoContinuationBayeux()
        Default constructor.
    • Method Detail

      • newRemoteClient

        public org.cometd.bayeux.server.ServerSession newRemoteClient()
      • setTimeout

        @Deprecated
        public void setTimeout​(long timeout)
        Deprecated.
      • getTimeout

        public long getTimeout()
      • getCometdContextName

        public String getCometdContextName()
        Returns:
        context name of cometd webapp
      • setCometdContextName

        public void setCometdContextName​(String context)
      • getUserToken

        public String getUserToken​(String eXoId)
        Parameters:
        eXoId - the client id.
        Returns:
        token for client
      • isSubscribed

        public boolean isSubscribed​(String eXoID,
                                    String clientID)
      • isPresent

        public boolean isPresent​(String eXoID)
      • sendBroadcastMessage

        public void sendBroadcastMessage​(String channel,
                                         Object data,
                                         String msgId)
        Parameters:
        channel - the id of channel.
        data - the message
        msgId - the message id
      • sendMessage

        public void sendMessage​(String eXoID,
                                String channel,
                                Object data,
                                String id)
        Send data to a individual client. The data passed is sent to the client as the "data" member of a message with the given channel and id. The message is not published on the channel and is thus not broadcast to all channel subscribers. However to the target client, the message appears as if it was broadcast.

        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.

        Parameters:
        eXoID - the id of target client
        channel - The id of channel the message is for
        data - The data of the message
        id - The id of the message (or null for a random id).
      • setSeti

        public void setSeti​(org.cometd.oort.Seti seti)
      • setOort

        public void setOort​(org.cometd.oort.Oort oort)
      • setCloudIDSeparator

        public void setCloudIDSeparator​(String cloudIDSeparator)
      • getServletConfig

        public javax.servlet.ServletConfig getServletConfig()
      • setServletConfig

        public void setServletConfig​(javax.servlet.ServletConfig config)
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.picocontainer.Disposable
      • getConnectedUserIds

        public Set<String> getConnectedUserIds()