Class SessionScope

    • Constructor Detail

      • SessionScope

        public SessionScope​(@Nonnull @Nonempty
                            String sScopeID)
    • Method Detail

      • initScope

        public void initScope()
        Description copied from interface: IScope
        Init the scope. In contrast to the constructor of a scope, this happens after the scope has been registered in the scope manager.
        Specified by:
        initScope in interface IScope
      • preDestroy

        protected void preDestroy()
        Description copied from class: AbstractScope
        Override this method to perform further actions BEFORE the scope is destroyed. The state is "in pre destruction".
        Overrides:
        preDestroy in class AbstractScope
      • postDestroy

        protected void postDestroy()
        Description copied from class: AbstractScope
        Override this method to perform further actions AFTER the scope was destroyed. The state is "destroyed".
        Overrides:
        postDestroy in class AbstractScope
      • selfDestruct

        @Nonnull
        public com.helger.commons.state.EContinue selfDestruct()
        Description copied from interface: ISessionScope
        A special internal method that destroys the session. This is especially relevant for session web scope, because it is all done via the invalidation of the underlying HTTP session.
        Specified by:
        selfDestruct in interface ISessionScope
        Returns:
        EContinue.BREAK to indicate that the regular destruction should not be performed!