HttpSessionListener (Java EE 5)

Java EE API


javax.servlet.http Interface HttpSessionListener

All Superinterfaces:
EventListener

public interface HttpSessionListener
extends EventListener

Implements: java.util.EventListener

对 Web 应用程序中活动会话列表的更改将通知此接口的实现。要接收通知事件,必须在 Web 应用程序的部署描述符中配置实现类。
英文文档:

Implementations of this interface are notified of changes to the list of active sessions in a web application. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application.

Since:
v 2.3
See Also:
HttpSessionEvent

Method Summary
 void
 void
 

Method Detail

public void sessionCreated(HttpSessionEvent se)
通知创建了一个会话。
se 通知事件
英文文档:

sessionCreated

void sessionCreated(HttpSessionEvent se)
Notification that a session was created.

Parameters:
se - the notification event

public void sessionDestroyed(HttpSessionEvent se)
通知某个会话即将无效。
se 通知事件
英文文档:

sessionDestroyed

void sessionDestroyed(HttpSessionEvent se)
Notification that a session is about to be invalidated.

Parameters:
se - the notification event


Submit a bug or feature

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

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

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