javax.servlet

Class 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.

Since: Servlet 2.4

See Also: ServletRequestListener

Constructor Summary
ServletRequestEvent(ServletContext sc, ServletRequest request)
Construct a ServletRequestEvent for the given ServletContext and ServletRequest.
Method Summary
ServletContextgetServletContext()
Returns the ServletContext of this web application.
ServletRequestgetServletRequest()
Returns the ServletRequest that is changing.

Constructor Detail

ServletRequestEvent

public 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

getServletContext

public ServletContext getServletContext()
Returns the ServletContext of this web application.

getServletRequest

public ServletRequest getServletRequest()
Returns the ServletRequest that is changing.
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.