ServletRequestListener (Java EE 5)

Java EE API


javax.servlet Interface ServletRequestListener

All Superinterfaces:
EventListener

public interface ServletRequestListener
extends EventListener

Implements: java.util.EventListener

ServletRequestListener 可由想要在请求进入和超出 Web 组件范围时获得通知的开发人员实现。当请求即将进入每个 Web 应用程序中的第一个 servlet 或过滤器时,该请求将被定义为进入范围,当它退出链中的最后一个 servlet 或第一个过滤器时,它将被定义为超出范围。
英文文档:

A ServletRequestListener can be implemented by the developer interested in being notified of requests coming in and out of scope in a web component. A request is defined as coming into scope when it is about to enter the first servlet or filter in each web application, as going out of scope when it exits the last servlet or the first filter in the chain.

Since:
Servlet 2.4

Method Summary
 void
 void
 

Method Detail

public void requestDestroyed(ServletRequestEvent sre)
请求即将超出该 Web 应用程序的范围。
英文文档:

requestDestroyed

void requestDestroyed(ServletRequestEvent sre)
The request is about to go out of scope of the web application.


public void requestInitialized(ServletRequestEvent sre)
请求即将进入该 Web 应用程序的范围。
英文文档:

requestInitialized

void requestInitialized(ServletRequestEvent sre)
The request is about to come into scope of the web application.



Submit a bug or feature

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

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

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