| JavaTM 2 Platform Ent. Ed. v1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES <script type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </script> All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.servlet
Class ServletRequestEvent
java.lang.Objectjava.util.EventObject
javax.servlet.ServletRequestEvent
-
All Implemented Interfaces:
- Serializable
-
Direct Known Subclasses:
- ServletRequestAttributeEvent
-
public class ServletRequestEvent
extends
EventObject
This is the event class for notifications about changes to the servlet request of a web application. 这是一个事件类,用于通知web应用程序中servlet上下文的改变。
-
Since:
- v 2.4 See Also:
-
ServletRequestListener
, Serialized Form
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ServletRequestEvent(ServletContext sc, ServletRequest request) Construct a ServletRequestEvent from the given context. 从给定的上下文中构建一个ServletRequestEvent。 |
Method Summary | |
ServletContext | getServletContext() Return the ServletContext that changed. 返回已改变的ServletContext。 |
ServletRequest | getServletRequest() Return the ServletRequest that changed. 返回已改变的ServletRequest。 |
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 |
ServletRequestEvent
public ServletRequestEvent(ServletContext sc, ServletRequest request)
- Construct a ServletRequestEvent from the given context. 从给定的上下文中构建一个ServletRequestEvent。 Parameters:
-
sc
- - the ServletContext of the web application. web应用的ServletContext。 -
request
- - the ServletRequest that is sending the event. 发送事件的ServletRequest。
Method Detail |
getServletRequest
public ServletRequest getServletRequest()
- Return the ServletRequest that changed. 返回已改变的ServletRequest。
-
-
Returns:
- the ServletRequest that sent the event. 发送事件的ServletRequest。
getServletContext
public ServletContext getServletContext()
- Return the ServletContext that changed. 返回已改变的ServletContext。
-
-
Returns:
- the ServletContext of the web application. web应用的ServletContext。
| JavaTM 2 Platform Ent. Ed. v1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES <script type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </script> All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2003 Sun Microsystems, Inc. All rights reserved.