Class WebSessionManagerImpl

    • Constructor Detail

      • WebSessionManagerImpl

        public WebSessionManagerImpl()
    • Method Detail

      • init

        protected void init()
      • setActiveSession

        public WebIServerSession setActiveSession​(java.lang.String key)
        Description copied from interface: WebSessionManager
        Sets the active session to be the session with the given key in the collection. The newly set active session will be returned. If there exists no session with the given key in the collection, then this method will return null.
        Specified by:
        setActiveSession in interface WebSessionManager
        Parameters:
        key - The key to look for in the session list.
        Returns:
        The session set as active, or null if the active session has not changed.
      • restoreStateFromRequest

        public boolean restoreStateFromRequest​(RequestKeys rk)
        Description copied from interface: RequestPersistable
        Restores a WebComponent based on the RequestKeys instance. This method retrieves the saved state of a component based on the component's name.
        Specified by:
        restoreStateFromRequest in interface RequestPersistable
        Parameters:
        rk - a RequestKeys instance.
        Returns:
        true if restoration succeeds.
      • restoreState

        protected boolean restoreState​(RequestKeys rk,
                                       java.lang.String key,
                                       java.lang.String state)
      • restoreState

        public boolean restoreState​(java.lang.String state)
        Description copied from interface: Persistable
        Restores a component based on its saved state.
        Specified by:
        restoreState in interface Persistable
        Overrides:
        restoreState in class AbstractPersistable
        Parameters:
        state - the state of a component
        Returns:
        true if restoration succeeds.
      • restoreStateFromRequest

        public boolean restoreStateFromRequest​(RequestKeys rk,
                                               java.lang.String keyName)
        Description copied from interface: RequestPersistable
        Restores a WebComponent based on the RequestKeys instance. This method retrieves the saved state of a component based on the parameter keyName.
        Specified by:
        restoreStateFromRequest in interface RequestPersistable
        Parameters:
        rk - a RequestKeys instance.
        keyName - the key to the state of a component.
        Returns:
        true if restoration succeeds.
      • getKey

        public java.lang.String getKey()
        Returns the key of the Session Manager. This value is used to store and retrieve the state of the Session Manager.
      • restoreSessionListState

        protected boolean restoreSessionListState​(WebIServerSessionList list,
                                                  java.lang.String state)
      • getSession

        public WebIServerSession getSession​(java.lang.String server,
                                            int port,
                                            java.lang.String project)