javax.servlet

Class ServletRequestEvent

Known Direct Subclasses:
ServletRequestAttributeEvent

public class ServletRequestEvent
extends java.util.EventObject

This is the event class for notifications about changes to the servlet request of a web application.
Version:
$Rev: 46019 $ $Date: 2005/03/15 10:03:20 $
Since:
Servlet2.4
See Also:
ServletRequestListener

Constructor Summary

ServletRequestEvent(ServletContext sc, ServletRequest request)
Construct a ServletRequestEvent from the given context.

Method Summary

ServletContext
getServletContext()
Return the ServletContext that changed.
ServletRequest
getServletRequest()
Return the ServletRequest that changed.

Constructor Details

ServletRequestEvent

public ServletRequestEvent(ServletContext sc,
                           ServletRequest request)
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

getServletContext

public ServletContext getServletContext()
Return the ServletContext that changed.
Returns:
the ServletContext of the web application.

getServletRequest

public ServletRequest getServletRequest()
Return the ServletRequest that changed.
Returns:
the ServletRequest that sent the event.

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.