Home » Spring-Framework-090522 » org.springframework » web » context » support » [javadoc | source]
org.springframework.web.context.support
public class: RequestHandledEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      org.springframework.context.ApplicationEvent
         org.springframework.web.context.support.RequestHandledEvent

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ServletRequestHandledEvent, PortletRequestHandledEvent

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.

Fields inherited from java.util.EventObject:
source
Constructor:
 public RequestHandledEvent(Object source,
    String sessionId,
    String userName,
    long processingTimeMillis) 
    Create a new RequestHandledEvent with session information.
    Parameters:
    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
 public RequestHandledEvent(Object source,
    String sessionId,
    String userName,
    long processingTimeMillis,
    Throwable failureCause) 
    Create a new RequestHandledEvent with session information.
    Parameters:
    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
Method from org.springframework.web.context.support.RequestHandledEvent Summary:
getDescription,   getFailureCause,   getProcessingTimeMillis,   getSessionId,   getShortDescription,   getUserName,   toString,   wasFailure
Methods from org.springframework.context.ApplicationEvent:
getTimestamp
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.context.support.RequestHandledEvent Detail:
 public String getDescription() 
    Return a full description of this event, involving all available context data.
 public Throwable getFailureCause() 
    Return the cause of failure, if any.
 public long getProcessingTimeMillis() 
    Return the processing time of the request in milliseconds.
 public String getSessionId() 
    Return the id of the HTTP session, if any.
 public String getShortDescription() 
    Return a short description of this event, only involving the most important context data.
 public String getUserName() 
    Return the name of the user that was associated with the request (usually the UserPrincipal).
 public String toString() 
 public boolean wasFailure() 
    Return whether the request failed.