public class DefaultWebSessionManager extends DefaultSessionManagerimplements WebSessionManager
SessionManager implementation.
sessionDAODEFAULT_SESSION_VALIDATION_INTERVAL, sessionValidationInterval, sessionValidationScheduler, sessionValidationSchedulerEnabledDEFAULT_GLOBAL_SESSION_TIMEOUT, MILLIS_PER_HOUR, MILLIS_PER_MINUTE, MILLIS_PER_SECOND| Constructor and Description |
|---|
DefaultWebSessionManager()
|
| Modifier and Type | Method and Description |
|---|---|
protected Session |
createExposedSession(Session
|
protected Session |
createExposedSession(Session
|
protected Serializable |
getSessionId(ServletRequest request, ServletResponse response)
|
Serializable |
getSessionId(SessionKey
|
Cookie |
getSessionIdCookie()
|
boolean |
isServletContainerSessions()
This is a native session manager implementation, so this method returns
false always.
|
boolean |
isSessionIdCookieEnabled()
|
protected void |
onExpiration(Session
|
protected void |
onInvalidation(Session
|
protected void |
onStart(Session
Stores the Session's ID, usually as a Cookie, to associate with future requests.
|
protected void |
onStop(Session
|
void |
setSessionIdCookie(Cookie
|
void |
setSessionIdCookieEnabled(boolean sessionIdCookieEnabled)
|
afterExpired, afterStopped, create, delete, doCreateSession, getActiveSessions, getSessionDAO, getSessionFactory, isDeleteInvalidSessions, newSessionInstance, onChange, onExpiration, onStop, retrieveSession, retrieveSessionFromDataSource, setCacheManager, setDeleteInvalidSessions, setSessionDAO, setSessionFactoryafterSessionValidationEnabled, beforeSessionValidationDisabled, createSession, createSessionValidationScheduler, destroy, disableSessionValidation, doGetSession, doValidate, enableSessionValidation, getSessionValidationInterval, getSessionValidationScheduler, getTimeout, isSessionValidationSchedulerEnabled, setSessionValidationInterval, setSessionValidationScheduler, setSessionValidationSchedulerEnabled, validate, validateSessionsapplyGlobalSessionTimeout, beforeInvalidNotification, checkValid, getAttribute, getAttributeKeys, getHost, getLastAccessTime, getSession, getSessionListeners, getStartTimestamp, getTimeout, isValid, notifyExpiration, notifyStart, notifyStop, removeAttribute, setAttribute, setSessionListeners, setTimeout, start, stop, touchgetGlobalSessionTimeout, setGlobalSessionTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSession, startpublic CookiegetSessionIdCookie()
public void setSessionIdCookie(CookiesessionIdCookie)
public boolean isSessionIdCookieEnabled()
public void setSessionIdCookieEnabled(boolean sessionIdCookieEnabled)
protected SessioncreateExposedSession(Session session, SessionContext context)
protected SessioncreateExposedSession(Session session, SessionKey key)
protected void onStart(Sessionsession, SessionContext context)
onStart in class
AbstractNativeSessionManager
session - the session that was just
created.
public SerializablegetSessionId(SessionKey key)
protected SerializablegetSessionId(ServletRequest request, ServletResponse response)
protected void onExpiration(Sessions, ExpiredSessionException ese, SessionKey key)
protected void onInvalidation(Sessionsession, InvalidSessionException ise, SessionKey key)
protected void onStop(Sessionsession, SessionKey key)
public boolean isServletContainerSessions()
false always.
isServletContainerSessions in interface
WebSessionManager
false always