Interface Session

  • All Superinterfaces:
    Map<String,​Object>
    All Known Implementing Classes:
    JwtCookieSession

    public interface Session
    extends Map<String,​Object>
    An interface for managing attributes across multiple requests from the same user agent. Implementations should expose underlying container session attributes through this interface if applicable.

    New keys added to a session object should be named in a manner that avoids possible collision with keys added by other objects in the heap.

    • Method Detail

      • save

        void save​(Response response)
           throws IOException
        Save the session state to the response.
        Parameters:
        response - The Response instance to write the session state to.
        Throws:
        IOException - If an I/O error occurs.