Interface SessionDataMap

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean delete​(java.lang.String id)
      Delete session data
      void initialize​(SessionContext context)
      Initialize this data map for the given context.
      SessionData load​(java.lang.String id)
      Read in session data.
      void store​(java.lang.String id, SessionData data)
      Store the session data.
      • Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

        addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
    • Method Detail

      • initialize

        void initialize​(SessionContext context)
                 throws java.lang.Exception
        Initialize this data map for the given context. A SessionDataMap can only be used by one context(/session manager).
        Parameters:
        context - context associated
        Throws:
        java.lang.Exception - if unable to initialize the
      • load

        SessionData load​(java.lang.String id)
                  throws java.lang.Exception
        Read in session data.
        Parameters:
        id - identity of session to load
        Returns:
        the SessionData matching the id
        Throws:
        java.lang.Exception - if unable to load session data
      • store

        void store​(java.lang.String id,
                   SessionData data)
            throws java.lang.Exception
        Store the session data.
        Parameters:
        id - identity of session to store
        data - info of session to store
        Throws:
        java.lang.Exception - if unable to write session data
      • delete

        boolean delete​(java.lang.String id)
                throws java.lang.Exception
        Delete session data
        Parameters:
        id - identity of session to delete
        Returns:
        true if the session was deleted
        Throws:
        java.lang.Exception - if unable to delete session data