[/url] [url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview
Class
JavaTM 2 Platform
Ent. Ed. v1.4
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
javax.servlet
Class ServletRequestAttributeEventjava.lang.Object
java.util.EventObject
javax.servlet.ServletRequestEvent
javax.servlet.ServletRequestAttributeEvent
All Implemented Interfaces: Serializable public class ServletRequestAttributeEvent extends ServletRequestEventThis is the event class for notifications about changes to the attributes of the servlet request of a web application. 这是一个事件类,用于通知web应用程序中servlet请求属性的改变。
Since: v 2.4 See Also: ServletRequestAttributeListener, Serialized FormField Summary
Fields inherited from class java.util.EventObject
Constructor Summary
ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value)
Construct a ServletRequestAttributeEvent from the given context for the given attribute name and attribute value. 从给定的上下文中按给定的属性名和属性值构建一个ServletRequestAttributeEvent。
Method Summary
getName()
Return the name of the attribute that changed on the ServletRequest. 返回ServletRequest改变的属性名。
getValue()
Returns the value of the attribute that has been added removed or replaced. 返回已被增加、删除、替换的属性值。
Methods inherited from class javax.servlet.ServletRequestEvent
getServletContext, getServletRequest
Methods inherited from class java.util.EventObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
ServletRequestAttributeEventpublic ServletRequestAttributeEvent(ServletContext sc,
ServletRequest request,
String name,
Object value)
Construct a ServletRequestAttributeEvent from the given context for the given attribute name and attribute value. 从给定的上下文中按给定的属性名和属性值构建一个ServletRequestAttributeEvent。
Parameters: sc - - the ServletContext that is sending the event. 发送事件的ServletContext。 request - - the ServletRequest that is sending the event. 发送事件的ServletRequest。 name - - the name of the request attribute. 请求属性名。 value - - the value of the request attribute. 请求属性值。Method Detail
getNamepublic String getName()
Return the name of the attribute that changed on the ServletRequest. 返回ServletRequest改变的属性名。
Returns: String - the name of the changed request attribute. 改变的请求属性名。getValuepublic Object getValue()
Returns the value of the attribute that has been added removed or replaced. If the attribute was added, this is the value of the attribute. If the attribute was removed, this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute. 返回已被增加、删除、替换的属性值。如果属性被增加,就是该属性的值。属性被删除,就是被删除属性的值。 如果属性被替换,就是该属性的旧值。
Returns: Object - the value of the changed request attribute. 改变的请求属性值。[/url][url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview
Class
JavaTM 2 Platform
Ent. Ed. v1.4
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.