|
||||||||||
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
public class 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 |
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. |
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 long getProcessingTimeMillis()
public String getClientAddress()
public String getMethod()
public String getServletName()
public String getSessionId()
public String getUserName()
public boolean wasFailure()
public Throwable getFailureCause()
public String toString()
toString
in class EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |