接口的使用
cn.taketoday.session.WebSession
使用WebSession的程序包
程序包
说明
Web Session Supports like Servlet's Session
Method handler
Miscellaneous web utility classes, such as HTML escaping,
Log4j initialization, and cookie handling.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
-
cn.taketoday.session中WebSession的使用
修饰符和类型类说明classSession events supported WebSession(专用程序包) final classclassAWebSessionimplementation that is backed by aMap.声明为WebSession的cn.taketoday.session中的字段修饰符和类型方法说明DefaultSessionManager.createSession()DefaultSessionManager.createSession(RequestContext context) InMemorySessionRepository.createSession()InMemorySessionRepository.createSession(String id) PersistenceSessionRepository.createSession()PersistenceSessionRepository.createSession(String id) SessionManager.createSession()create a new sessionSessionManager.createSession(RequestContext context) create a new session associated withRequestContextSessionRepository.createSession()Create a new WebSession.SessionRepository.createSession(String id) Create a new WebSession with given session id.DefaultSessionManager.getSession(RequestContext context) DefaultSessionManager.getSession(RequestContext context, boolean create) DefaultSessionManager.getSession(String sessionId) SessionManager.getSession(RequestContext context) Returns the current session associated with this request, or if the request does not have a session, creates one.SessionManager.getSession(RequestContext context, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.SessionManager.getSession(String sessionId) Get a session with given session idSessionManagerOperations.getSession(RequestContext context) Returns the current session associated with this request, or if the request does not have a session, creates one.SessionManagerOperations.getSession(RequestContext context, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.WebSessionEvent.getSession()Return the session that changed.Load and return the WebSession associated with the specified session identifier from this Store, without removing it.Load and return the Session associated with the specified session identifier from this Store, without removing it.InMemorySessionRepository.removeSession(String id) PersistenceSessionRepository.removeSession(String sessionId) SessionRepository.removeSession(String sessionId) Remove the WebSession for the specified id.InMemorySessionRepository.retrieveSession(String id) PersistenceSessionRepository.retrieveSession(String sessionId) SessionRepository.retrieveSession(String sessionId) Return the WebSession for the given id.返回变量类型为WebSession的类型的cn.taketoday.session中的方法修饰符和类型方法说明InMemorySessionRepository.getSessions()Return the map of sessions with anunmodifiablewrapper.参数类型为WebSession的cn.taketoday.session中的方法修饰符和类型方法说明voidSessionEventDispatcher.attributeAdded(WebSession session, String attributeName, Object value) Notification that an attribute has been added to a session.default voidWebSessionAttributeListener.attributeAdded(WebSession session, String attributeName, Object value) Notification that an attribute has been added to a session.voidSessionEventDispatcher.attributeRemoved(WebSession session, String attributeName, Object value) Notification that an attribute has been removed from a session.default voidWebSessionAttributeListener.attributeRemoved(WebSession session, String attributeName, Object value) Notification that an attribute has been removed from a session.voidSessionEventDispatcher.attributeReplaced(WebSession session, String attributeName, Object oldValue, Object newValue) Notification that an attribute has been replaced in a session.default voidWebSessionAttributeListener.attributeReplaced(WebSession session, String attributeName, Object oldValue, Object newValue) Notification that an attribute has been replaced in a session.protected final voidAbstractWebSession.copyAttributesFrom(WebSession source) Copy the attributes from the supplied AttributeAccessor to this accessor.SessionManagerOperations.getAttribute(WebSession session, String name) Get the value of the attribute identified byname.(专用程序包) static SessionEventDispatcherMapSession.getEventDispatcher(WebSession session) voidSessionEventDispatcher.onSessionCreated(WebSession session) Receives notification that a session has been created.voidSessionEventDispatcher.onSessionDestroyed(WebSession session) Receives notification that a session is about to be invalidated.voidPersistenceSessionRepository.removeSession(WebSession session) default voidSessionRepository.removeSession(WebSession session) Remove the WebSession for the specified instance.voidFileSessionPersister.save(WebSession session) Save the specified Session into this Store.voidSessionPersister.save(WebSession session) Save the specified Session into this Store.voidInMemorySessionRepository.updateLastAccessTime(WebSession session) voidPersistenceSessionRepository.updateLastAccessTime(WebSession webSession) voidSessionRepository.updateLastAccessTime(WebSession webSession) Update the last accessed timestamp to "now".default voidAttributeBindingListener.valueBound(WebSession session, String attributeName) Notifies the object that it is being bound to a session and identifies the session.default voidAttributeBindingListener.valueUnbound(WebSession session, String attributeName) Notifies the object that it is being unbound from a session and identifies the session.参数类型为WebSession的cn.taketoday.session中的构造器限定符构造器说明MapSession(WebSession session) Creates a new instance from the providedWebSession.WebSessionEvent(Object source, WebSession session) -
cn.taketoday.web中WebSession的使用
返回WebSession的cn.taketoday.web中的方法修饰符和类型方法说明RequestContextUtils.WebSessionProvider.get()static WebSessionRequestContextUtils.getRequiredSession(RequestContext request) Returns the current session associated with this request, or if the request does not have a session, creates one.static WebSessionRequestContextUtils.getSession(RequestContext request) Returns the current session associated with this request, or if the request does not have a session, creates one.static WebSessionRequestContextUtils.getSession(RequestContext request, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session. -
cn.taketoday.web.bind.support中WebSession的使用
-
cn.taketoday.web.context.support中WebSession的使用
修饰符和类型方法说明private WebSessionSessionScope.getSession(RequestContext context) Returns the current session associated with this request, or if the request does not have a session, creates one.private WebSessionSessionScope.getSession(RequestContext request, boolean create) Returns the currentWebSessionassociated with this request or, if there is no current session andcreateis true, returns a new session.修饰符和类型方法说明voidSessionScope.DestructionCallback.attributeRemoved(WebSession session, String attributeName, Object value) protected ObjectSessionScope.getAttribute(WebSession context, String beanName) protected voidSessionScope.removeAttribute(WebSession context, String name) protected voidSessionScope.setAttribute(WebSession context, String beanName, Object scopedObject) voidDestructionCallbackBindingListener.valueUnbound(WebSession session, String attributeName) -
cn.taketoday.web.handler.method中WebSession的使用
-
cn.taketoday.web.util中WebSession的使用
参数类型为WebSession的cn.taketoday.web.util中的方法修饰符和类型方法说明static ObjectWebUtils.getSessionMutex(WebSession session) Return the best available mutex for the given session: that is, an object to synchronize on for the given session. -
cn.taketoday.web.view中WebSession的使用
修饰符和类型方法说明private WebSessionSessionRedirectModelManager.getSession(RequestContext context, boolean create)