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,
序列化表格
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.