FileDocCategorySizeDatePackage
ServletRequestEvent.javaAPI DocApache Tomcat 6.0.141950Fri Jul 20 04:20:32 BST 2007javax.servlet

ServletRequestEvent

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.
see
ServletRequestListener
since
Servlet 2.4

Fields Summary
private ServletRequest
request
Constructors Summary
public ServletRequestEvent(ServletContext sc, ServletRequest request)
Construct a ServletRequestEvent for the given ServletContext and ServletRequest.

param
sc the ServletContext of the web application.
param
request the ServletRequest that is sending the event.

        super(sc);
        this.request = request;
    
Methods Summary
public javax.servlet.ServletContextgetServletContext()
Returns the ServletContext of this web application.

 
        return (ServletContext) super.getSource();
    
public javax.servlet.ServletRequestgetServletRequest()
Returns the ServletRequest that is changing.

 
        return this.request;