javax.servlet.http
接口 HttpSessionActivationListener

所有超级接口:
EventListener
所有已知实现类:
SessionAuthentication

public interface HttpSessionActivationListener
extends EventListener

Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. A container that migrates session between VMs or persists sessions is required to notify all attributes bound to sessions implementing HttpSessionActivationListener.

从以下版本开始:
Servlet 2.3

方法摘要
 void sessionDidActivate(HttpSessionEvent se)
          Notification that the session has just been activated.
 void sessionWillPassivate(HttpSessionEvent se)
          Notification that the session is about to be passivated.
 

方法详细信息

sessionWillPassivate

void sessionWillPassivate(HttpSessionEvent se)
Notification that the session is about to be passivated.


sessionDidActivate

void sessionDidActivate(HttpSessionEvent se)
Notification that the session has just been activated.



Copyright © 2013. All Rights Reserved.