LifeCycle
DefaultSessionIdManager
public interface SessionIdManager extends LifeCycle
LifeCycle.Listener
Modifier and Type | Method | Description |
---|---|---|
void |
expireAll(java.lang.String id) |
Expire all sessions on all contexts that share the same id.
|
java.lang.String |
getExtendedId(java.lang.String id,
javax.servlet.http.HttpServletRequest request) |
Get an extended id for a session.
|
java.lang.String |
getId(java.lang.String qualifiedId) |
Get just the session id from an id that includes the worker name
as a suffix.
|
java.util.Set<SessionHandler> |
getSessionHandlers() |
Get the set of all session handlers for this node
|
HouseKeeper |
getSessionHouseKeeper() |
|
java.lang.String |
getWorkerName() |
|
void |
invalidateAll(java.lang.String id) |
Invalidate all sessions on all contexts that share the same id.
|
boolean |
isIdInUse(java.lang.String id) |
|
java.lang.String |
newSessionId(javax.servlet.http.HttpServletRequest request,
long created) |
Create a new Session ID.
|
java.lang.String |
renewSessionId(java.lang.String oldId,
java.lang.String oldExtendedId,
javax.servlet.http.HttpServletRequest request) |
Change the existing session id.
|
void |
setSessionHouseKeeper(HouseKeeper houseKeeper) |
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stop
boolean isIdInUse(java.lang.String id)
id
- The plain session ID (ie no workername extension)void expireAll(java.lang.String id)
id
- The session ID without any cluster node extensionvoid invalidateAll(java.lang.String id)
id
- the session idjava.lang.String newSessionId(javax.servlet.http.HttpServletRequest request, long created)
request
- the request with the sesioncreated
- the timestamp for when the session was createdjava.lang.String getWorkerName()
java.lang.String getId(java.lang.String qualifiedId)
qualifiedId
- the session id including the worker namejava.lang.String getExtendedId(java.lang.String id, javax.servlet.http.HttpServletRequest request)
id
- The id of the sessionrequest
- The request that for the session (or null)java.lang.String renewSessionId(java.lang.String oldId, java.lang.String oldExtendedId, javax.servlet.http.HttpServletRequest request)
oldId
- the old plain session idoldExtendedId
- the old fully qualified idrequest
- the request containing the sessionjava.util.Set<SessionHandler> getSessionHandlers()
void setSessionHouseKeeper(HouseKeeper houseKeeper)
houseKeeper
- the housekeeper for doing scavengingHouseKeeper getSessionHouseKeeper()
Copyright © 1995–2018 Webtide. All rights reserved.