Class JEESessionStore

    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
    • Constructor Detail

      • JEESessionStore

        public JEESessionStore()
    • Method Detail

      • getHttpSession

        protected javax.servlet.http.HttpSession getHttpSession​(JEEContext context)
      • getOrCreateSessionId

        public String getOrCreateSessionId​(JEEContext context)
        Description copied from interface: SessionStore
        Get or create the session identifier and initialize the session with it if necessary.
        Specified by:
        getOrCreateSessionId in interface SessionStore<JEEContext>
        Parameters:
        context - the web context
        Returns:
        the session identifier
      • get

        public Optional get​(JEEContext context,
                            String key)
        Description copied from interface: SessionStore
        Get the object from its key in store.
        Specified by:
        get in interface SessionStore<JEEContext>
        Parameters:
        context - the web context
        key - the key of the object
        Returns:
        the optional object in store
      • set

        public void set​(JEEContext context,
                        String key,
                        Object value)
        Description copied from interface: SessionStore
        Save an object in the store by its key.
        Specified by:
        set in interface SessionStore<JEEContext>
        Parameters:
        context - the web context
        key - the key of the object
        value - the value to save in store
      • destroySession

        public boolean destroySession​(JEEContext context)
        Description copied from interface: SessionStore
        Destroy the web session.
        Specified by:
        destroySession in interface SessionStore<JEEContext>
        Parameters:
        context - the web context
        Returns:
        whether the session has been destroyed
      • renewSession

        public boolean renewSession​(JEEContext context)
        Description copied from interface: SessionStore
        Renew the native session by copying all data to a new one.
        Specified by:
        renewSession in interface SessionStore<JEEContext>
        Parameters:
        context - the web context
        Returns:
        whether the session store has renewed the session