Package javax.servlet
Class ServletRequestEvent
java.lang.Object
java.util.EventObject
javax.servlet.ServletRequestEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ServletRequestAttributeEvent
This is the event class for notifications about changes to the
servlet request of a web application.
- Since:
- Servlet2.4
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionServletRequestEvent(ServletContext sc, ServletRequest request) Construct a ServletRequestEvent from the given context. -
Method Summary
Modifier and TypeMethodDescriptionReturn the ServletContext that changed.Return the ServletRequest that changed.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ServletRequestEvent
Construct a ServletRequestEvent from the given context.- Parameters:
sc- the ServletContext of the web application.request- the ServletRequest that is sending the event.
-
-
Method Details
-
getServletRequest
Return the ServletRequest that changed.- Returns:
- the ServletRequest that sent the event.
-
getServletContext
Return the ServletContext that changed.- Returns:
- the ServletContext of the web application.
-