|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.utils.servlet.session.DistSessionTracker
Manages sessions for the HttpRequestSessionWrapper
Field Summary | |
(package private) static int |
clients
|
private static DistSessionPoolManager |
dsMgr
|
private static DistSessionGC |
gc
Used to asynchronously remove expired DistSession objects. |
static DistSessionTracker |
instance
Description of the Field |
private static org.apache.commons.logging.Log |
log
|
private static java.util.Set |
sessIdSet
Used to check and remove expired DistSession objects. |
static java.lang.String |
SESSION_COOKIE_NAME
Description of the Field |
Fields inherited from interface org.apache.jcs.utils.servlet.session.ISessionConstants |
DFLT_INACTIVE_INTERVAL, SESS_CACHE_NAME, SESS_CACHE_SIZE, SESS_INFO_CACHE_NAME, SESS_INFO_CACHE_SIZE |
Constructor Summary | |
private |
DistSessionTracker()
Constructor for the DistSessionTracker object |
Method Summary | |
private MetaHttpSession |
createDistSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Description of the Method |
private MetaHttpSession |
getDistSession(javax.servlet.http.HttpServletRequest req)
Gets the distSession attribute of the DistSessionTracker object |
static DistSessionTracker |
getInstance()
Gets the instance attribute of the DistSessionTracker class |
java.lang.String |
getRequestedSessionId(javax.servlet.http.HttpServletRequest req)
Gets the requested session id from the cookie. |
MetaHttpSession |
getSession(boolean create,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Gets the session attribute of the DistSessionTracker object |
MetaHttpSession |
getSession(javax.servlet.http.HttpServletRequest req)
Gets the session attribute of the DistSessionTracker object |
java.lang.String |
getStats()
Gets the stats attribute of the DistSessionTracker object |
boolean |
isRequestedSessionIdValid(javax.servlet.http.HttpServletRequest req)
Gets the requestedSessionIdValid attribute of the DistSessionTracker object |
void |
release()
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
public static final java.lang.String SESSION_COOKIE_NAME
private static DistSessionPoolManager dsMgr
public static DistSessionTracker instance
static int clients
private static transient java.util.Set sessIdSet
private static transient DistSessionGC gc
Constructor Detail |
private DistSessionTracker()
Method Detail |
public static DistSessionTracker getInstance()
public MetaHttpSession getSession(javax.servlet.http.HttpServletRequest req)
public MetaHttpSession getSession(boolean create, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
private MetaHttpSession createDistSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
private MetaHttpSession getDistSession(javax.servlet.http.HttpServletRequest req)
public java.lang.String getRequestedSessionId(javax.servlet.http.HttpServletRequest req)
public boolean isRequestedSessionIdValid(javax.servlet.http.HttpServletRequest req)
public void release()
public java.lang.String getStats()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |