public interface SessionIdManager extends LifeCycle
LifeCycle.Listener
Modifier and Type | Method and Description |
---|---|
void |
expireAll(String id)
Expire all sessions on all contexts that share the same id.
|
String |
getExtendedId(String id,
HttpServletRequest request)
Get an extended id for a session.
|
String |
getId(String qualifiedId)
Get just the session id from an id that includes the worker name
as a suffix.
|
Set<SessionHandler> |
getSessionHandlers()
Get the set of all session handlers for this node
|
HouseKeeper |
getSessionHouseKeeper() |
String |
getWorkerName() |
void |
invalidateAll(String id)
Invalidate all sessions on all contexts that share the same id.
|
boolean |
isIdInUse(String id) |
String |
newSessionId(HttpServletRequest request,
long created)
Create a new Session ID.
|
String |
renewSessionId(String oldId,
String oldExtendedId,
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(String id)
id
- The plain session ID (ie no workername extension)void expireAll(String id)
id
- The session ID without any cluster node extensionvoid invalidateAll(String id)
id
- the session idString newSessionId(HttpServletRequest request, long created)
request
- the request with the sesioncreated
- the timestamp for when the session was createdString getWorkerName()
String getId(String qualifiedId)
qualifiedId
- the session id including the worker nameString getExtendedId(String id, HttpServletRequest request)
id
- The id of the sessionrequest
- The request that for the session (or null)String renewSessionId(String oldId, String oldExtendedId, HttpServletRequest request)
oldId
- the old plain session idoldExtendedId
- the old fully qualified idrequest
- the request containing the sessionSet<SessionHandler> getSessionHandlers()
void setSessionHouseKeeper(HouseKeeper houseKeeper)
houseKeeper
- the housekeeper for doing scavengingHouseKeeper getSessionHouseKeeper()
Copyright © 2010 - 2020 Adobe. All Rights Reserved