类 RequestHandledEvent

    • 构造器详细资料

      • RequestHandledEvent

        public RequestHandledEvent​(Object source,
                                   String sessionId,
                                   String userName,
                                   long processingTimeMillis)
        Create a new RequestHandledEvent with session information.
        参数:
        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

        public RequestHandledEvent​(Object source,
                                   String sessionId,
                                   String userName,
                                   long processingTimeMillis,
                                   Throwable failureCause)
        Create a new RequestHandledEvent with session information.
        参数:
        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