Top Description Fields Constructors Methods
jakarta.servlet

public Class ServletRequestEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
jakarta.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 that is changing.
getServletContext
()

Get the associated ServletContext.

public ServletRequest

Returns:

the ServletRequest that is changing.
getServletRequest
()

Get the associated ServletRequest.

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

Get the associated ServletContext.

Returns:ServletContext

the ServletContext that is changing.

getServletRequestback to summary
public ServletRequest getServletRequest()

Get the associated ServletRequest.

Returns:ServletRequest

the ServletRequest that is changing.