Interface HttpSessionContext

    • Method Detail

      • invalidate

        void invalidate()

        Mark the Session Context for destruction; the Session Context will be detached from the underling Http Session, and instances marked for destruction when the Http Request is destroyed.

        Specified by:
        invalidate in interface ManagedContext
      • isValid

        boolean isValid()

        Returns false if the session has been invalidated (using invalidate()). Returns true otherwise.

        Returns:
        true if invalidate() has been called on this context
      • destroy

        boolean destroy​(javax.servlet.http.HttpSession session)

        Destroy the session and all conversations stored in the session.

        If the context is not currently associated with a HttpServletRequest, then the context will be associated with the specified HttpSession (for this thread), activated, destroyed, and then deactivated.

        If the context is already associated with a HttpServletRequest then this call will detach the context from the underlying Http Session, and mark the context for destruction when the request is destroyed.

        Parameters:
        session - the HttpSession in which to store the bean instances
        Returns:
        true if the context was destroyed immediately