Top Description Fields Constructors Methods
javax.servlet

public Class ServletRequestEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
javax.servlet.ServletRequestAttributeEvent

This is the event class for notifications about changes to the servlet request of a web application.
Since
Servlet2.4
Version
$Rev: 46019 $ $Date: 2004-09-14 04:56:06 -0500 (Tue, 14 Sep 2004) $
See Also
ServletRequestListener

Field Summary

Modifier and TypeField and Description
private ServletRequest
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
ServletRequestEvent(ServletContext
the ServletContext of the web application.
sc
,
ServletRequest
the ServletRequest that is sending the event.
request
)

Construct a ServletRequestEvent from the given context.

Method Summary

Modifier and TypeMethod and Description
public ServletContext

Returns:

the ServletContext of the web application.
getServletContext
()

Return the ServletContext that changed.

public ServletRequest

Returns:

the ServletRequest that sent the event.
getServletRequest
()

Return the ServletRequest that changed.

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

requestback to summary
private ServletRequest request

Constructor Detail

ServletRequestEventback to summary
public ServletRequestEvent(ServletContext sc, ServletRequest request)

Construct a ServletRequestEvent from the given context.

Parameters
sc:ServletContext

the ServletContext of the web application.

request:ServletRequest

the ServletRequest that is sending the event.

Method Detail

getServletContextback to summary
public ServletContext getServletContext()

Return the ServletContext that changed.

Returns:ServletContext

the ServletContext of the web application.

getServletRequestback to summary
public ServletRequest getServletRequest()

Return the ServletRequest that changed.

Returns:ServletRequest

the ServletRequest that sent the event.