Package jakarta.servlet
Class ServletRequestEvent
java.lang.Object
java.util.EventObject
jakarta.servlet.ServletRequestEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ServletRequestAttributeEvent
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:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionServletRequestEvent(ServletContext sc, ServletRequest request) Construct a ServletRequestEvent for the given ServletContext and ServletRequest.
- 
Method SummaryModifier and TypeMethodDescriptionGet the associated ServletContext.Get the associated ServletRequest.Methods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
ServletRequestEventConstruct 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 Details- 
getServletRequestGet the associated ServletRequest.- Returns:
- the ServletRequest that is changing.
 
- 
getServletContextGet the associated ServletContext.- Returns:
- the ServletContext that is changing.
 
 
-