|
|||||||||||
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.SessionId
Extract the session ID from the request using cookies and session rewriting. Will process the request and determine the session Id, and set it in the Request. It doesn't marks the session as accessed, and it doesn't retrieve or set the HttpSession - the storage and management of sessions is implemented in a separate module. This interceptor doesn't deal with any of the Session internals - it just works with the sessionID. A pluggable session manager ( or user-space manager !) will deal with marking the session as accessed or setting the session implementation and maintaining lifecycles. This implementation only handles Cookies and URL rewriting sessions, please extend or add new interceptors for other methods. You can set this interceptor to not use cookies, but only rewriting.
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
SessionId()
|
Method Summary | |
int |
beforeBody(Request rrequest,
Response response)
Called before the first body write, and before sending the headers. |
boolean |
getIgnoreCase()
|
boolean |
getSecureCookie()
|
int |
postReadRequest(Request request)
Extract the session id from the request. |
int |
requestMap(Request request)
Extract and set the session id and ServerSession. |
void |
setCheckSSLSessionId(boolean checkSSLSessionId)
|
void |
setCookiesFirst(boolean b)
|
void |
setIgnoreCase(boolean ic)
Is the path case-insenitive. |
void |
setNoCookies(boolean noCookies)
|
void |
setSecureCookie(boolean sc)
Use secure cookies for SSL connections. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeCommit, contextInit, contextMap, contextShutdown, contextState, copyContext, engineInit, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, preService, preServletDestroy, preServletInit, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, sessionState, 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 SessionId()
Method Detail |
public void setCookiesFirst(boolean b)
public void setNoCookies(boolean noCookies)
public void setCheckSSLSessionId(boolean checkSSLSessionId)
public void setIgnoreCase(boolean ic)
public boolean getIgnoreCase()
public void setSecureCookie(boolean sc)
public boolean getSecureCookie()
public int postReadRequest(Request request)
postReadRequest
in class BaseInterceptor
public int requestMap(Request request)
requestMap
in class BaseInterceptor
public int beforeBody(Request rrequest, Response response)
BaseInterceptor
beforeBody
in class BaseInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |