ServletRequestEvent (Java EE 5)

Java EE API


javax.servlet Class ServletRequestEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.ServletRequestEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ServletRequestAttributeEvent

public class ServletRequestEvent
extends EventObject

Extends: java.util.EventObject

这类事件指示 ServletRequest 的生命周期事件。事件的源是此 Web 应用程序的 ServletContext。
英文文档:

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

Since:
Servlet 2.4
See Also:
ServletRequestListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
 
Constructor Summary
 
Method Summary
 ServletContext
 ServletRequest
 
Methods inherited from class java.util.EventObject
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public ServletRequestEvent(ServletContext sc, ServletRequest request)
为给定 ServletContext 和 ServletRequest 构造 ServletRequestEvent。
sc Web 应用程序的 ServletContext。
request 发送该事件的 ServletRequest。
英文文档:

ServletRequestEvent

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

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

Method Detail

public ServletRequest getServletRequest()
返回正发生更改的 ServletRequest。
英文文档:

getServletRequest

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


public ServletContext getServletContext()
返回此 Web 应用程序的 ServletContext。
英文文档:

getServletContext

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



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!