站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v1.4 API Specifications

ServletRequestEvent (Java 2 Platform Ent. Ed. v1.4) - Java Platform, Enterprise Edition v1.4 API Specifications

JavaTM 2 Platform
Ent. Ed. v1.4

javax.servlet
Class ServletRequestEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.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.

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.
 
Method Summary
 ServletContext getServletContext()
          Return the ServletContext that changed.
 ServletRequest getServletRequest()
          Return the ServletRequest that changed.
 
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.

Parameters:
sc - - the ServletContext of the web application.
request - - the ServletRequest that is sending the event.
Method Detail

getServletRequest

public ServletRequest getServletRequest()
Return the ServletRequest that changed.

Returns:
the ServletRequest that sent the event.

getServletContext

public ServletContext getServletContext()
Return the ServletContext that changed.

Returns:
the ServletContext of the web application.

JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.