public class DefaultWebSessionManager extends DefaultSessionManager implements 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 session,
SessionContext context) |
protected Session |
createExposedSession(Session session,
SessionKey key) |
protected Serializable |
getSessionId(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
Serializable |
getSessionId(SessionKey key) |
Cookie |
getSessionIdCookie() |
boolean |
isServletContainerSessions()
This is a native session manager implementation, so this method returns
false always. |
boolean |
isSessionIdCookieEnabled() |
protected void |
onExpiration(Session s,
ExpiredSessionException ese,
SessionKey key) |
protected void |
onInvalidation(Session session,
InvalidSessionException ise,
SessionKey key) |
protected void |
onStart(Session session,
SessionContext context)
Stores the Session's ID, usually as a Cookie, to associate with future requests.
|
protected void |
onStop(Session session,
SessionKey key) |
void |
setSessionIdCookie(Cookie sessionIdCookie) |
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 Cookie getSessionIdCookie()
public void setSessionIdCookie(Cookie sessionIdCookie)
public boolean isSessionIdCookieEnabled()
public void setSessionIdCookieEnabled(boolean sessionIdCookieEnabled)
protected Session createExposedSession(Session session, SessionContext context)
createExposedSession in class AbstractNativeSessionManagerprotected Session createExposedSession(Session session, SessionKey key)
createExposedSession in class AbstractNativeSessionManagerprotected void onStart(Session session, SessionContext context)
onStart in class AbstractNativeSessionManagersession - the session that was just created.public Serializable getSessionId(SessionKey key)
getSessionId in class DefaultSessionManagerprotected Serializable getSessionId(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
protected void onExpiration(Session s, ExpiredSessionException ese, SessionKey key)
onExpiration in class AbstractValidatingSessionManagerprotected void onInvalidation(Session session, InvalidSessionException ise, SessionKey key)
onInvalidation in class AbstractValidatingSessionManagerprotected void onStop(Session session, SessionKey key)
onStop in class AbstractNativeSessionManagerpublic boolean isServletContainerSessions()
false always.isServletContainerSessions in interface WebSessionManagerfalse alwaysCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.