javax.servlet
Class ServletRequestEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.ServletRequestEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ServletRequestAttributeEvent

public class ServletRequestEvent
extends java.util.EventObject

The event class for changes to the servlet context.

Since:
Servlet 2.4
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServletRequestEvent(ServletContext application, ServletRequest request)
          Creates a ServletRequestEvent from the changed application.
 
Method Summary
 ServletContext getServletContext()
          Returns the ServletContext that changed.
 ServletRequest getServletRequest()
          Returns the ServletRequest that changed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletRequestEvent

public ServletRequestEvent(ServletContext application,
                           ServletRequest request)
Creates a ServletRequestEvent from the changed application.

Parameters:
application - the servlet context that has changed.
request - the servlet request that has changed.
Method Detail

getServletContext

public ServletContext getServletContext()
Returns the ServletContext that changed.

Returns:
the changed application

getServletRequest

public ServletRequest getServletRequest()
Returns the ServletRequest that changed.

Returns:
the changed request