public class MyWebSessionManager
extends org.apache.shiro.web.session.mgt.DefaultWebSessionManager
| 构造器和说明 |
|---|
MyWebSessionManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
org.apache.shiro.web.servlet.Cookie |
getSessionIdCookie() |
boolean |
isServletContainerSessions()
This is a native session manager implementation, so this method returns
false always. |
boolean |
isSessionIdCookieEnabled() |
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(org.apache.shiro.web.servlet.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, setGlobalSessionTimeoutpublic org.apache.shiro.web.servlet.Cookie getSessionIdCookie()
getSessionIdCookie 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerpublic void setSessionIdCookie(org.apache.shiro.web.servlet.Cookie sessionIdCookie)
setSessionIdCookie 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerpublic boolean isSessionIdCookieEnabled()
isSessionIdCookieEnabled 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerpublic void setSessionIdCookieEnabled(boolean sessionIdCookieEnabled)
setSessionIdCookieEnabled 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected org.apache.shiro.session.Session createExposedSession(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionContext context)
createExposedSession 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected org.apache.shiro.session.Session createExposedSession(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionKey key)
createExposedSession 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected void onStart(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionContext context)
onStart 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagersession - the session that was just created.public Serializable getSessionId(org.apache.shiro.session.mgt.SessionKey key)
getSessionId 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected Serializable getSessionId(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
getSessionId 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected void onExpiration(org.apache.shiro.session.Session s,
org.apache.shiro.session.ExpiredSessionException ese,
org.apache.shiro.session.mgt.SessionKey key)
onExpiration 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected void onInvalidation(org.apache.shiro.session.Session session,
org.apache.shiro.session.InvalidSessionException ise,
org.apache.shiro.session.mgt.SessionKey key)
onInvalidation 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerprotected void onStop(org.apache.shiro.session.Session session,
org.apache.shiro.session.mgt.SessionKey key)
onStop 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerpublic boolean isServletContainerSessions()
false always.isServletContainerSessions 在接口中 org.apache.shiro.web.session.mgt.WebSessionManagerisServletContainerSessions 在类中 org.apache.shiro.web.session.mgt.DefaultWebSessionManagerfalse alwaysCopyright © 2014. All rights reserved.