spring-framework / org.springframework.web.context.support / ServletRequestHandledEvent / <init>

<init>

ServletRequestHandledEvent(source: Any, requestUrl: String, clientAddress: String, method: String, servletName: String, @Nullable sessionId: String, @Nullable userName: String, processingTimeMillis: Long)

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

ServletRequestHandledEvent(source: Any, requestUrl: String, clientAddress: String, method: String, servletName: String, @Nullable sessionId: String, @Nullable userName: String, processingTimeMillis: Long, @Nullable failureCause: Throwable)

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

ServletRequestHandledEvent(source: Any, requestUrl: String, clientAddress: String, method: String, servletName: String, @Nullable sessionId: String, @Nullable userName: String, processingTimeMillis: Long, @Nullable failureCause: Throwable, statusCode: Int)

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

statusCode - the HTTP status code of the response