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

<init>

RequestHandledEvent(source: Any, @Nullable sessionId: String, @Nullable userName: String, processingTimeMillis: Long)

Create a new RequestHandledEvent with session information.

Parameters

source - the component that published the event

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

RequestHandledEvent(source: Any, @Nullable sessionId: String, @Nullable userName: String, processingTimeMillis: Long, @Nullable failureCause: Throwable)

Create a new RequestHandledEvent with session information.

Parameters

source - the component that published the event

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