public class DefaultWebSessionManager extends org.apache.shiro.session.mgt.DefaultSessionManager implements WebSessionManager
SessionManager implementation.| Constructor and Description |
|---|
DefaultWebSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.shiro.session.Session |
createExposedSession(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionContext context) |
protected org.apache.shiro.session.Session |
createExposedSession(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionKey key) |
protected Serializable |
getSessionId(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
Serializable |
getSessionId(org.apache.shiro.session.mgt.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(org.apache.shiro.session.Session s,
org.apache.shiro.session.ExpiredSessionException ese,
org.apache.shiro.session.mgt.SessionKey key) |
protected void |
onInvalidation(org.apache.shiro.session.Session session,
org.apache.shiro.session.InvalidSessionException ise,
org.apache.shiro.session.mgt.SessionKey key) |
protected void |
onStart(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionContext context)
Stores the Session's ID, usually as a Cookie, to associate with future requests.
|
protected void |
onStop(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.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, setSessionFactoryafterSessionValidationEnabled, beforeSessionValidationDisabled, createSession, createSessionValidationScheduler, destroy, disableSessionValidation, doGetSession, doValidate, enableSessionValidation, getSessionValidationInterval, getSessionValidationScheduler, getTimeout, isSessionValidationSchedulerEnabled, setSessionValidationInterval, setSessionValidationScheduler, setSessionValidationSchedulerEnabled, validate, validateSessionsapplyGlobalSessionTimeout, beforeInvalidNotification, checkValid, getAttribute, getAttributeKeys, getEventBus, getHost, getLastAccessTime, getSession, getSessionListeners, getStartTimestamp, getTimeout, isValid, notifyExpiration, notifyStart, notifyStop, publishEvent, removeAttribute, setAttribute, setEventBus, setSessionListeners, setTimeout, start, stop, touchgetGlobalSessionTimeout, setGlobalSessionTimeoutpublic Cookie getSessionIdCookie()
public void setSessionIdCookie(Cookie sessionIdCookie)
public boolean isSessionIdCookieEnabled()
public void setSessionIdCookieEnabled(boolean sessionIdCookieEnabled)
public boolean isSessionIdUrlRewritingEnabled()
public void setSessionIdUrlRewritingEnabled(boolean sessionIdUrlRewritingEnabled)
protected org.apache.shiro.session.Session createExposedSession(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionContext context)
createExposedSession in class org.apache.shiro.session.mgt.AbstractNativeSessionManagerprotected org.apache.shiro.session.Session createExposedSession(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionKey key)
createExposedSession in class org.apache.shiro.session.mgt.AbstractNativeSessionManagerprotected void onStart(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionContext context)
onStart in class org.apache.shiro.session.mgt.AbstractNativeSessionManagersession - the session that was just created.public Serializable getSessionId(org.apache.shiro.session.mgt.SessionKey key)
getSessionId in class org.apache.shiro.session.mgt.DefaultSessionManagerprotected Serializable getSessionId(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
protected void onExpiration(org.apache.shiro.session.Session s,
org.apache.shiro.session.ExpiredSessionException ese,
org.apache.shiro.session.mgt.SessionKey key)
onExpiration in class org.apache.shiro.session.mgt.AbstractValidatingSessionManagerprotected void onInvalidation(org.apache.shiro.session.Session session,
org.apache.shiro.session.InvalidSessionException ise,
org.apache.shiro.session.mgt.SessionKey key)
onInvalidation in class org.apache.shiro.session.mgt.AbstractValidatingSessionManagerprotected void onStop(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionKey key)
onStop in class org.apache.shiro.session.mgt.AbstractNativeSessionManagerpublic boolean isServletContainerSessions()
false always.isServletContainerSessions in interface WebSessionManagerfalse alwaysCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.