|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.servlet Class ServletRequestEvent
java.lang.Object java.util.EventObject javax.servlet.ServletRequestEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ServletRequestAttributeEvent
public class ServletRequestEvent
- extends EventObject
Extends:
java.util.EventObject
Extended by:
ServletRequestAttributeEvent
这类事件指示 ServletRequest 的生命周期事件。事件的源是此 Web 应用程序的 ServletContext。
since |
| |
See also | javax.servlet.ServletRequestListener |
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 |
---|
source |
Constructor Summary | |
---|---|
ServletRequestEvent(ServletContext sc,
ServletRequest request)
Construct a ServletRequestEvent for the given ServletContext and ServletRequest. |
Method Summary | |
---|---|
ServletContext |
getServletContext()
Returns the ServletContext of this web application. |
ServletRequest |
getServletRequest()
Returns the ServletRequest that is changing. |
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 |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!