public class

ServletRequestHandledEvent

extends RequestHandledEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.springframework.context.ApplicationEvent
       ↳ org.springframework.web.context.support.RequestHandledEvent
         ↳ org.springframework.web.context.support.ServletRequestHandledEvent

Class Overview

Servlet-specific subclass of RequestHandledEvent, adding servlet-specific context information.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ServletRequestHandledEvent(Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis)
Create a new ServletRequestHandledEvent.
ServletRequestHandledEvent(Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis, Throwable failureCause)
Create a new ServletRequestHandledEvent.
Public Methods
String getClientAddress()
Return the IP address that the request came from.
String getDescription()
Return a full description of this event, involving all available context data.
String getMethod()
Return the HTTP method of the request (usually GET or POST).
String getRequestUrl()
Return the URL of the request.
String getServletName()
Return the name of the servlet that handled the request.
String getShortDescription()
Return a short description of this event, only involving the most important context data.
String toString()
[Expand]
Inherited Methods
From class org.springframework.web.context.support.RequestHandledEvent
From class org.springframework.context.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ServletRequestHandledEvent (Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis)

Create a new ServletRequestHandledEvent.

Parameters
source the component that published the event
requestUrl the URL of the request
clientAddress the IP address that the request came from
method the HTTP method of the request (usually GET or POST)
servletName the name of the servlet that handled the request
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 ServletRequestHandledEvent (Object source, String requestUrl, String clientAddress, String method, String servletName, String sessionId, String userName, long processingTimeMillis, Throwable failureCause)

Create a new ServletRequestHandledEvent.

Parameters
source the component that published the event
requestUrl the URL of the request
clientAddress the IP address that the request came from
method the HTTP method of the request (usually GET or POST)
servletName the name of the servlet that handled the request
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

Public Methods

public String getClientAddress ()

Return the IP address that the request came from.

public String getDescription ()

Return a full description of this event, involving all available context data.

public String getMethod ()

Return the HTTP method of the request (usually GET or POST).

public String getRequestUrl ()

Return the URL of the request.

public String getServletName ()

Return the name of the servlet that handled the request.

public String getShortDescription ()

Return a short description of this event, only involving the most important context data.

public String toString ()