|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.modules.session.SimpleSessionStore
A simple session store plugin. It will create, store and maintain session objects using a simple in-memory pool. It must be inserted after SessionId, which does common session stuff ( cookie, rewrite, etc)
Nested Class Summary | |
static class |
SimpleSessionStore.SimpleSessionManager
The actual "simple" manager |
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
SimpleSessionStore()
|
Method Summary | |
void |
contextInit(Context ctx)
Init session management stuff for this context. |
void |
contextShutdown(Context ctx)
Notification of context shutdown. |
void |
copyContext(Request req,
Context oldC,
Context newC)
Reload notification - called whenever a full reload is done. |
void |
engineInit(ContextManager cm)
Initialize the module. |
ServerSession |
findSession(Context ctx,
java.lang.String sessionId)
|
ServerSession |
findSession(Request request,
java.lang.String sessionId,
boolean create)
The session store hook |
int |
getRecycledCount(Context ctx)
|
int |
getSessionCount(Context ctx)
|
java.util.Enumeration |
getSessionIds(Context ctx)
|
java.util.Enumeration |
getSessions(Context ctx)
|
void |
reload(Request req,
Context ctx)
Reload notification - called whenever a reload is done. |
int |
sessionState(Request req,
ServerSession session,
int state)
Hook for session state changes. |
void |
setInitialPool(int initial)
|
void |
setMaxActiveSessions(int count)
|
void |
setMaxPool(int max)
|
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextState, engineShutdown, engineStart, engineState, engineStop, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, preService, preServletDestroy, preServletInit, registerHooks, removeContainer, removeContext, removeHandler, removeInterceptor, requestMap, setContext, setContextManager, setDebug, setInfo, setNote, setNote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleSessionStore()
Method Detail |
public void setMaxActiveSessions(int count)
public void setInitialPool(int initial)
public void setMaxPool(int max)
public void engineInit(ContextManager cm) throws TomcatException
BaseInterceptor
engineInit
in class BaseInterceptor
TomcatException
- The module will not be added if any
exception is thrown by engineInit.public void copyContext(Request req, Context oldC, Context newC) throws TomcatException
BaseInterceptor
copyContext
in class BaseInterceptor
TomcatException
public void reload(Request req, Context ctx) throws TomcatException
BaseInterceptor
reload
in class BaseInterceptor
TomcatException
public ServerSession findSession(Request request, java.lang.String sessionId, boolean create)
findSession
in class BaseInterceptor
sessionId
- if null the manager will generate the idpublic void contextInit(Context ctx) throws TomcatException
contextInit
in class BaseInterceptor
TomcatException
public void contextShutdown(Context ctx) throws TomcatException
contextShutdown
in class BaseInterceptor
TomcatException
public int sessionState(Request req, ServerSession session, int state)
BaseInterceptor
sessionState
in class BaseInterceptor
public java.util.Enumeration getSessionIds(Context ctx)
public java.util.Enumeration getSessions(Context ctx)
public int getSessionCount(Context ctx)
public int getRecycledCount(Context ctx)
public ServerSession findSession(Context ctx, java.lang.String sessionId)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |