javax.servlet
类 ServletRequestEvent

java.lang.Object
  继承者 java.util.EventObject
      继承者 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, 序列化表格

字段摘要
 
从类 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.



Copyright © 2013. All Rights Reserved.