Package com.helger.web.scope.mgr
Class WebScopeSessionManager
- java.lang.Object
-
- com.helger.web.scope.mgr.WebScopeSessionManager
-
@Immutable public final class WebScopeSessionManager extends Object
This is a specialization ofScopeSessionManagerfor web scopes.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddestroyAllWebSessions()Destroy all available web scopes.static com.helger.commons.collection.impl.ICommonsCollection<ISessionWebScope>getAllSessionWebScopes()static ISessionWebScopegetSessionWebScopeOfID(String sScopeID)Get the web session scope with the specified ID.static ISessionWebScopegetSessionWebScopeOfSession(jakarta.servlet.http.HttpSession aHttpSession)Get the session web scope of the passed HTTP session.
-
-
-
Method Detail
-
getSessionWebScopeOfID
@Nullable public static ISessionWebScope getSessionWebScopeOfID(@Nullable String sScopeID)
Get the web session scope with the specified ID. If no such scope exists,nullis returned.- Parameters:
sScopeID- The ID to be resolved.- Returns:
nullif no such scope exists or if the passed scope is not a session web scopes.
-
getSessionWebScopeOfSession
@Nullable public static ISessionWebScope getSessionWebScopeOfSession(@Nullable jakarta.servlet.http.HttpSession aHttpSession)
Get the session web scope of the passed HTTP session.- Parameters:
aHttpSession- The HTTP session to get the scope from. May benull.- Returns:
nullif either the HTTP session isnullor if no such scope exists.
-
getAllSessionWebScopes
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsCollection<ISessionWebScope> getAllSessionWebScopes()
- Returns:
- A non-
null, mutable copy of all managed session web scopes.
-
destroyAllWebSessions
public static void destroyAllWebSessions()
Destroy all available web scopes.
-
-