public class DefaultWebSessionManager extends DefaultSessionManager implements WebSessionManager
SessionManager
implementation.sessionDAO
DEFAULT_SESSION_VALIDATION_INTERVAL, sessionValidationInterval, sessionValidationScheduler, sessionValidationSchedulerEnabled
DEFAULT_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() |
boolean |
isSessionIdUrlRewritingEnabled() |
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) |
void |
setSessionIdUrlRewritingEnabled(boolean sessionIdUrlRewritingEnabled) |
afterExpired, afterStopped, create, delete, doCreateSession, getActiveSessions, getSessionDAO, getSessionFactory, isDeleteInvalidSessions, newSessionInstance, onChange, onExpiration, onStop, retrieveSession, retrieveSessionFromDataSource, setCacheManager, setDeleteInvalidSessions, setSessionDAO, setSessionFactory
afterSessionValidationEnabled, beforeSessionValidationDisabled, createSession, createSessionValidationScheduler, destroy, disableSessionValidation, doGetSession, doValidate, enableSessionValidation, getSessionValidationInterval, getSessionValidationScheduler, getTimeout, isSessionValidationSchedulerEnabled, setSessionValidationInterval, setSessionValidationScheduler, setSessionValidationSchedulerEnabled, validate, validateSessions
applyGlobalSessionTimeout, beforeInvalidNotification, checkValid, getAttribute, getAttributeKeys, getEventBus, getHost, getLastAccessTime, getSession, getSessionListeners, getStartTimestamp, getTimeout, isValid, notifyExpiration, notifyStart, notifyStop, publishEvent, removeAttribute, setAttribute, setEventBus, setSessionListeners, setTimeout, start, stop, touch
getGlobalSessionTimeout, setGlobalSessionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSession, start
public DefaultWebSessionManager()
public Cookie getSessionIdCookie()
public void setSessionIdCookie(Cookie sessionIdCookie)
public boolean isSessionIdCookieEnabled()
public void setSessionIdCookieEnabled(boolean sessionIdCookieEnabled)
public boolean isSessionIdUrlRewritingEnabled()
public void setSessionIdUrlRewritingEnabled(boolean sessionIdUrlRewritingEnabled)
protected Session createExposedSession(Session session, SessionContext context)
createExposedSession
in class AbstractNativeSessionManager
protected Session createExposedSession(Session session, SessionKey key)
createExposedSession
in class AbstractNativeSessionManager
protected void onStart(Session session, SessionContext context)
onStart
in class AbstractNativeSessionManager
session
- the session that was just created
.context
- the SessionContext
that was used to start the session.public Serializable getSessionId(SessionKey key)
getSessionId
in class DefaultSessionManager
protected Serializable getSessionId(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
protected void onExpiration(Session s, ExpiredSessionException ese, SessionKey key)
onExpiration
in class AbstractValidatingSessionManager
protected void onInvalidation(Session session, InvalidSessionException ise, SessionKey key)
onInvalidation
in class AbstractValidatingSessionManager
protected void onStop(Session session, SessionKey key)
onStop
in class AbstractNativeSessionManager
public boolean isServletContainerSessions()
false
always.isServletContainerSessions
in interface WebSessionManager
false
alwaysCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.