org.mortbay.jetty.servlet
public abstract class AbstractSessionManager extends Object implements SessionManager
If the property org.mortbay.jetty.servlet.AbstractSessionManager.23Notifications is set to true, the 2.3 servlet spec notification style will be used.
Version: $Id: AbstractSessionManager.java,v 1.53 2006/11/22 20:01:10 gregwilkins Exp $
Nested Class Summary | |
---|---|
abstract class | AbstractSessionManager.Session |
Field Summary | |
---|---|
protected boolean | _crossContextSessionIDs |
protected ServletHandler | _handler |
protected boolean | _httpOnly |
protected boolean | _invalidateGlobal |
protected int | _maxSessions |
protected int | _minSessions |
protected Random | _random |
protected boolean | _secureCookies |
protected ArrayList | _sessionAttributeListeners |
protected ArrayList | _sessionListeners |
protected Map | _sessions |
protected boolean | _weakRandom |
protected static MultiMap | __allSessions |
static int | __distantFuture |
Constructor Summary | |
---|---|
AbstractSessionManager() | |
AbstractSessionManager(Random random) |
Method Summary | |
---|---|
void | addEventListener(EventListener listener) |
boolean | getCrossContextSessionIDs() |
boolean | getHttpOnly() |
HttpSession | getHttpSession(String id) |
int | getMaxInactiveInterval() |
int | getMaxSessions() |
int | getMinSessions() |
Random | getRandom() |
int | getScavengePeriod() |
boolean | getSecureCookies() |
Cookie | getSessionCookie(HttpSession session, boolean requestIsSecure) |
Map | getSessionMap() |
int | getSessions() |
boolean | getUseRequestedId() |
String | getWorkerName() Get the workname.
|
void | initialize(ServletHandler handler) |
boolean | isInvalidateGlobal() |
boolean | isStarted() |
HttpSession | newHttpSession(HttpServletRequest request) |
protected abstract AbstractSessionManager.Session | newSession(HttpServletRequest request) |
void | removeEventListener(EventListener listener) |
void | resetStats() |
void | setCrossContextSessionIDs(boolean useRequestedId) Set Cross Context sessions IDs
This option activates a mode where a requested session ID can be used to create a
new session. |
void | setHttpOnly(boolean httpOnly) |
void | setInvalidateGlobal(boolean global) |
void | setMaxInactiveInterval(int seconds) |
void | setRandom(Random random) |
void | setScavengePeriod(int seconds) |
void | setSecureCookies(boolean secureCookies) |
void | setUseRequestedId(boolean useRequestedId) Set Use Requested ID. |
void | setWorkerName(String workerName) Set the workname.
|
void | start() |
void | stop() |
Returns: True if cross context session IDs are first considered for new session IDs
Returns: Returns the httpOnly.
Returns: seconds
Returns: seconds
Returns: Returns the secureCookies.
Deprecated: use getCrossContextSessionIDs session IDs
Returns: True if requested session ID are first considered for new
Returns: String or null
Parameters: useRequestedId True if cross context session ID are first considered for new session IDs
Parameters: httpOnly The httpOnly to set.
Parameters: global True if session invalidation should be global. ie Sessions in other contexts with the same ID (linked by cross context dispatch or shared session cookie) are invalidated as a group.
Parameters: seconds
Parameters: seconds
Parameters: secureCookies The secureCookies to set.
Deprecated: use setCrossContextSessionIDs session IDs
Set Use Requested ID.Parameters: useRequestedId True if requested session ID are first considered for new
Parameters: workerName