|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface HttpSessionListener
Interface for receiving notification events about HttpSession lifecycle changes.
In order to receive these notification events, the implementation
class must be either declared in the deployment descriptor of the web
application, annotated with WebListener,
or registered via one of the addListener methods defined on
ServletContext.
Implementations of this interface are invoked at their
sessionCreated(javax.servlet.http.HttpSessionEvent) method in the order in which they have been
declared, and at their sessionDestroyed(javax.servlet.http.HttpSessionEvent) method in reverse
order.
HttpSessionEvent| 方法摘要 | |
|---|---|
void |
sessionCreated(HttpSessionEvent se)
Receives notification that a session has been created. |
void |
sessionDestroyed(HttpSessionEvent se)
Receives notification that a session is about to be invalidated. |
| 方法详细信息 |
|---|
void sessionCreated(HttpSessionEvent se)
se - the HttpSessionEvent containing the sessionvoid sessionDestroyed(HttpSessionEvent se)
se - the HttpSessionEvent containing the session
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||