ServletRequestAttributeListener (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.servlet Interface ServletRequestAttributeListener

所有父接口:
EventListener

public interface ServletRequestAttributeListener
extends EventListener

A ServletRequestAttributeListener can be implemented by the developer interested in being notified of request attribute changes. Notifications will be generated while the request is within the scope of the web application in which the listener is registered. 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.

从以下版本开始:
Servlet 2.4

方法摘要
 void attributeAdded(ServletRequestAttributeEvent srae)
          Notification that a new attribute was added to the servlet request.
 void attributeRemoved(ServletRequestAttributeEvent srae)
          Notification that an existing attribute has been removed from the servlet request.
 void attributeReplaced(ServletRequestAttributeEvent srae)
          Notification that an attribute was replaced on the servlet request.
 

方法详细信息

attributeAdded

void attributeAdded(ServletRequestAttributeEvent srae)
Notification that a new attribute was added to the servlet request. Called after the attribute is added.


attributeRemoved

void attributeRemoved(ServletRequestAttributeEvent srae)
Notification that an existing attribute has been removed from the servlet request. Called after the attribute is removed.


attributeReplaced

void attributeReplaced(ServletRequestAttributeEvent srae)
Notification that an attribute was replaced on the servlet request. Called after the attribute is replaced.


Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.