@Immutable public final class WebScopeSessionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.state.EChange |
renewCurrentSessionScope(boolean bInvalidateHttpSession)
Renew the current session scope.
|
static ISessionWebScope |
renewSessionScope(javax.servlet.http.HttpSession aHttpSession)
Renew the session scope identified by the passed HTTP session.
|
@Nonnull public static com.helger.commons.state.EChange renewCurrentSessionScope(boolean bInvalidateHttpSession)
IScopeRenewalAware interface are kept.bInvalidateHttpSession - if true the underlying HTTP session is also invalidated
and a new session is created.EChange.UNCHANGED if no session scope is present.@Nullable public static ISessionWebScope renewSessionScope(@Nonnull javax.servlet.http.HttpSession aHttpSession)
aHttpSession - The HTTP session to be renewed.null if nothing was changed, the new session web scope
otherwise.Copyright © 2014–2019 Philip Helger. All rights reserved.