ServletRequestEvent (Java EE 5 SDK)

Java

Java EE 5 SDK

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


javax.servlet Class ServletRequestEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.ServletRequestEvent
所有已实现的接口:
Serializable
直接已知子类:
ServletRequestAttributeEvent

public class ServletRequestEvent
extends EventObject

Events of this kind indicate lifecycle events for a ServletRequest. The source of the event is the ServletContext of this web application.

从以下版本开始:
Servlet 2.4
另请参见:
ServletRequestListener, Serialized Form

字段摘要
 
Fields inherited from class java.util.EventObject
source
 
构造器摘要
ServletRequestEvent(ServletContext sc, ServletRequest request)
          Construct a ServletRequestEvent for the given ServletContext and ServletRequest.
 
方法摘要
 ServletContext getServletContext()
          Returns the ServletContext of this web application.
 ServletRequest getServletRequest()
          Returns the ServletRequest that is changing.
 
类方法继承 java.util.EventObject
getSource, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

ServletRequestEvent

public ServletRequestEvent(ServletContext sc,
                           ServletRequest request)
Construct a ServletRequestEvent for the given ServletContext and ServletRequest.

参数:
sc - the ServletContext of the web application.
request - the ServletRequest that is sending the event.

方法详细信息

getServletRequest

public ServletRequest getServletRequest()
Returns the ServletRequest that is changing.


getServletContext

public ServletContext getServletContext()
Returns the ServletContext of this web application.


Java EE 5 SDK

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


提交错误或意见

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