HttpSessionActivationListener (Java EE 5)

Java EE API


javax.servlet.http Interface HttpSessionActivationListener

All Superinterfaces:
EventListener

public interface HttpSessionActivationListener
extends EventListener

Implements: java.util.EventListener

绑定到会话的对象可以侦听通知它们会话将被钝化和会话将被激活的容器事件。在 VM 之间迁移会话或者保留会话的容器需要通知绑定到实现 HttpSessionActivationListener 的会话的所有属性。
英文文档:

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.

Since:
2.3

Method Summary
 void
 void
 

Method Detail

public void sessionWillPassivate(HttpSessionEvent se)
通知会话即将被钝化。
英文文档:

sessionWillPassivate

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


public void sessionDidActivate(HttpSessionEvent se)
通知会话刚刚被激活。
英文文档:

sessionDidActivate

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



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!