Class NetworkContext

    • Constructor Detail

      • NetworkContext

        public NetworkContext()
        Deprecated.
    • Method Detail

      • addClientSessionListener

        public abstract void addClientSessionListener​(ClientSessionListener listener)
        Deprecated.
        Registers a ClientSessionListener. The listener gets informed on events of client sessions.
        Parameters:
        listener - the listener to register
      • removeClientSessionListener

        public abstract void removeClientSessionListener​(ClientSessionListener listener)
        Deprecated.
        Removes a previous registered ClientSessionListener.
        Parameters:
        listener - the listener to remove
      • getClients

        public abstract List<Client> getClients()
        Deprecated.
        Returns a list of all clients known by this server.
        Returns:
        the list of Clients
      • get

        public static NetworkContext get()
        Deprecated.
        This returns the NetworkContext. The NetworkContext gets initialized by the com.levigo.jadice.web.transport.server.TransportWebtoolkitFilter and supplemented with further details by other components once they are initialized.

        Calling this method prior to the initialization this will return null.

        Returns:
        the NetworkContext, or null if none was initialize yet
      • set

        protected static void set​(NetworkContext connectionContext)
        Deprecated.
        This is an automatic setter used by the com.levigo.jadice.web.transport.server.TransportWebtoolkitFilter in order to set the NetworkContext and inform all NetworkContext.NetworkInitializedListeners that are registered.
        Parameters:
        connectionContext - that was established
      • isInitialized

        public static boolean isInitialized()
        Deprecated.
        Checks if the NetworkContext was initialized. If this yields true, get() can be called to obtain the current NetworkContext instance.
        Returns:
        true if the NetworkContext was initialized, false if not