java.lang.Object | |||
↳ | java.util.EventObject | ||
↳ | org.springframework.context.ApplicationEvent | ||
↳ | org.springframework.web.context.support.RequestHandledEvent |
Known Direct Subclasses |
Event raised when a request is handled within an ApplicationContext.
Supported by Spring's own FrameworkServlet (through a specific ServletRequestHandledEvent subclass), but can also be raised by any other web component. Used, for example, by Spring's out-of-the-box PerformanceMonitorListener.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new RequestHandledEvent with session information.
| |||||||||||
Create a new RequestHandledEvent with session information.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a full description of this event, involving
all available context data.
| |||||||||||
Return the cause of failure, if any.
| |||||||||||
Return the processing time of the request in milliseconds.
| |||||||||||
Return the id of the HTTP session, if any.
| |||||||||||
Return a short description of this event, only involving
the most important context data.
| |||||||||||
Return the name of the user that was associated with the request
(usually the UserPrincipal).
| |||||||||||
Return whether the request failed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.context.ApplicationEvent
| |||||||||||
From class
java.util.EventObject
| |||||||||||
From class
java.lang.Object
|
Create a new RequestHandledEvent with session information.
source | the component that published the event |
---|---|
sessionId | the id of the HTTP session, if any |
userName | the name of the user that was associated with the request, if any (usually the UserPrincipal) |
processingTimeMillis | the processing time of the request in milliseconds |
Create a new RequestHandledEvent with session information.
source | the component that published the event |
---|---|
sessionId | the id of the HTTP session, if any |
userName | the name of the user that was associated with the request, if any (usually the UserPrincipal) |
processingTimeMillis | the processing time of the request in milliseconds |
failureCause | the cause of failure, if any |
Return a full description of this event, involving all available context data.
Return the processing time of the request in milliseconds.
Return a short description of this event, only involving the most important context data.
Return the name of the user that was associated with the request (usually the UserPrincipal).
Return whether the request failed.