javax.servlet.ServletRequestAttributeEvent翻译

王朝java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

[/url] [url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview

Package

Class

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Ent. Ed. v1.4

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

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

source

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

String

getName()

Return the name of the attribute that changed on the ServletRequest. 返回ServletRequest改变的属性名。

Object

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

getSource, toString

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

Package

Class

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Ent. Ed. v1.4

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有