open class ServletRequestHandledEvent : RequestHandledEvent
Servlet-specific subclass of RequestHandledEvent, adding servlet-specific context information.
Author
Juergen Hoeller
Since
2.0
See Also
org.springframework.web.servlet.FrameworkServletorg.springframework.context.ApplicationContext#publishEvent
ServletRequestHandledEvent(source: Any, requestUrl: String, clientAddress: String, method: String, servletName: String, sessionId: String, userName: String, processingTimeMillis: Long)ServletRequestHandledEvent(source: Any, requestUrl: String, clientAddress: String, method: String, servletName: String, sessionId: String, userName: String, processingTimeMillis: Long, failureCause: Throwable)ServletRequestHandledEvent(source: Any, requestUrl: String, clientAddress: String, method: String, servletName: String, sessionId: String, userName: String, processingTimeMillis: Long, failureCause: Throwable, statusCode: Int)
Create a new ServletRequestHandledEvent. |
open fun getClientAddress(): String
Return the IP address that the request came from. |
|
open fun getDescription(): String |
|
open fun getMethod(): String
Return the HTTP method of the request (usually GET or POST). |
|
open fun getRequestUrl(): String
Return the URL of the request. |
|
open fun getServletName(): String
Return the name of the servlet that handled the request. |
|
open fun getShortDescription(): String |
|
open fun getStatusCode(): Int
Return the HTTP status code of the response or -1 if the status code is not available. |
|
open fun toString(): String |
open fun getFailureCause(): Throwable
Return the cause of failure, if any. |
|
open fun getProcessingTimeMillis(): Long
Return the processing time of the request in milliseconds. |
|
open fun getSessionId(): String
Return the id of the HTTP session, if any. |
|
open fun getUserName(): String
Return the name of the user that was associated with the request (usually the UserPrincipal). |
|
open fun wasFailure(): Boolean
Return whether the request failed. |