Package jakarta.servlet
Class ServletRequestEvent
- java.lang.Object
- 
- java.util.EventObject
- 
- jakarta.servlet.ServletRequestEvent
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- 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.- Since:
- Servlet 2.4
- See Also:
- ServletRequestListener, Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description ServletRequestEvent(ServletContext sc, ServletRequest request)Construct a ServletRequestEvent for the given ServletContext and ServletRequest.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ServletContextgetServletContext()Returns the ServletContext of this web application.ServletRequestgetServletRequest()Returns the ServletRequest that is changing.- 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
ServletRequestEventpublic 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- 
getServletRequestpublic ServletRequest getServletRequest() Returns the ServletRequest that is changing.- Returns:
- the ServletRequestcorresponding to this event.
 
 - 
getServletContextpublic ServletContext getServletContext() Returns the ServletContext of this web application.- Returns:
- the ServletContextfor this web application.
 
 
- 
 
-