Package javax.servlet

Class ServletRequestEvent

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class ServletRequestEvent
    extends java.util.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
    See Also:
    ServletRequestListener, Serialized Form
    • Constructor Detail

      • 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.
    • Method Detail

      • getServletRequest

        public ServletRequest getServletRequest()
        Get the associated ServletRequest.
        the ServletRequest that is changing.
      • getServletContext

        public ServletContext getServletContext()
        Get the associated ServletContext.
        the ServletContext that is changing.