Class HttpSessionDestructionContext

  • All Implemented Interfaces:
    jakarta.enterprise.context.spi.AlterableContext, jakarta.enterprise.context.spi.Context, org.jboss.weld.context.BoundContext<jakarta.servlet.http.HttpSession>, org.jboss.weld.context.ManagedContext, org.jboss.weld.context.WeldAlterableContext

    public class HttpSessionDestructionContext
    extends AbstractBoundContext<jakarta.servlet.http.HttpSession>
    This special http session context is necessary because HttpSessionListeners that are called when a session is being destroyed outside the scope of a HTTP request, need to be able to access the session context. We can't simply activate the regular HttpSessionContext, since we would need an HttpServletRequest to associate and activate the context.
    Author:
    Marko Luksa
    • Constructor Detail

    • Method Detail

      • associate

        public boolean associate​(jakarta.servlet.http.HttpSession session)