|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.springframework.context.ApplicationEvent org.springframework.web.context.support.RequestHandledEvent
Event raised when a request is handled within a WebApplicationContext. Supported by Spring's own FrameworkServlet, but can also be raised by any other web component.
FrameworkServlet
,
Serialized FormField Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
RequestHandledEvent(Object source,
String requestUrl,
long processingTimeMillis,
String clientAddress,
String method,
String servletName)
Create a new RequestHandledEvent. |
|
RequestHandledEvent(Object source,
String requestUrl,
long processingTimeMillis,
String clientAddress,
String method,
String servletName,
String sessionId,
String userName)
Create a new RequestHandledEvent with session information. |
|
RequestHandledEvent(Object source,
String requestUrl,
long processingTimeMillis,
String clientAddress,
String method,
String servletName,
String sessionId,
String userName,
Throwable failureCause)
Create a new RequestHandledEvent with session information. |
|
RequestHandledEvent(Object source,
String requestUrl,
long processingTimeMillis,
String clientAddress,
String method,
String servletName,
Throwable failureCause)
Create a new RequestHandledEvent. |
Method Summary | |
String |
getClientAddress()
Return the IP address that the request came from. |
Throwable |
getFailureCause()
Return the cause of failure, if any. |
String |
getIpAddress()
Deprecated. in favor of getClientAddress |
String |
getMethod()
Return the HTTP method of the request (usually GET or POST). |
long |
getProcessingTimeMillis()
Return the processing time of the request in milliseconds. |
String |
getRequestUrl()
Return the URL of the request. |
String |
getServletName()
Return the name of the servlet that handled the request. |
String |
getSessionId()
Return the id of the HTTP session, if any. |
long |
getTimeMillis()
Deprecated. in favor of getProcessingTimeMillis |
String |
getURL()
Deprecated. in favor of getRequestUrl |
String |
getUserName()
Return the name of the user that was associated with the request (usually the UserPrincipal). |
String |
toString()
|
boolean |
wasFailure()
Return whether the request failed. |
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RequestHandledEvent(Object source, String requestUrl, long processingTimeMillis, String clientAddress, String method, String servletName)
source
- the component that published the eventrequestUrl
- the URL of the requestprocessingTimeMillis
- the processing time of the request in millisecondsclientAddress
- the IP address that the request came frommethod
- the HTTP method of the request (usually GET or POST)servletName
- the name of the servlet that handled the requestpublic RequestHandledEvent(Object source, String requestUrl, long processingTimeMillis, String clientAddress, String method, String servletName, Throwable failureCause)
source
- the component that published the eventrequestUrl
- the URL of the requestprocessingTimeMillis
- the processing time of the request in millisecondsclientAddress
- the IP address that the request came frommethod
- the HTTP method of the request (usually GET or POST)servletName
- the name of the servlet that handled the requestfailureCause
- the cause of failure, if anypublic RequestHandledEvent(Object source, String requestUrl, long processingTimeMillis, String clientAddress, String method, String servletName, String sessionId, String userName)
source
- the component that published the eventrequestUrl
- the URL of the requestprocessingTimeMillis
- the processing time of the request in millisecondsclientAddress
- the IP address that the request came frommethod
- the HTTP method of the request (usually GET or POST)servletName
- the name of the servlet that handled the requestsessionId
- the id of the HTTP session, if anyuserName
- the name of the user that was associated with the
request, if any (usually the UserPrincipal)public RequestHandledEvent(Object source, String requestUrl, long processingTimeMillis, String clientAddress, String method, String servletName, String sessionId, String userName, Throwable failureCause)
source
- the component that published the eventrequestUrl
- the URL of the requestprocessingTimeMillis
- the processing time of the request in millisecondsclientAddress
- the IP address that the request came frommethod
- the HTTP method of the request (usually GET or POST)servletName
- the name of the servlet that handled the requestsessionId
- the id of the HTTP session, if anyuserName
- the name of the user that was associated with the
request, if any (usually the UserPrincipal)failureCause
- the cause of failure, if anyMethod Detail |
public String getRequestUrl()
public String getURL()
getRequestUrl
public long getProcessingTimeMillis()
public long getTimeMillis()
getProcessingTimeMillis
public String getClientAddress()
public String getIpAddress()
getClientAddress
public String getMethod()
public String getServletName()
public String getSessionId()
public String getUserName()
HttpServletRequest.getUserPrincipal()
public boolean wasFailure()
public Throwable getFailureCause()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |