Top Description Fields Constructors Methods
javax.servlet

public Class ServletRequestEvent

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

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

Field Summary

Modifier and TypeField and Description
private final transient ServletRequest
private static final long
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 for the given ServletContext and ServletRequest.

Method Summary

Modifier and TypeMethod and Description
public ServletContext

Returns:

the ServletContext for this web application.
getServletContext
()

Returns the ServletContext of this web application.

public ServletRequest

Returns:

the ServletRequest corresponding to this event.
getServletRequest
()

Returns the ServletRequest that is changing.

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

requestback to summary
private final transient ServletRequest request
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Constructor Detail

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

Construct a ServletRequestEvent for the given ServletContext and ServletRequest.

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()

Returns the ServletContext of this web application.

Returns:ServletContext

the ServletContext for this web application.

getServletRequestback to summary
public ServletRequest getServletRequest()

Returns the ServletRequest that is changing.

Returns:ServletRequest

the ServletRequest corresponding to this event.