类 ServletRequestHandledEvent

    • 构造器详细资料

      • ServletRequestHandledEvent

        public ServletRequestHandledEvent​(Object source,
                                          String requestUrl,
                                          String clientAddress,
                                          String method,
                                          String servletName,
                                          String sessionId,
                                          String userName,
                                          long processingTimeMillis)
        Create a new ServletRequestHandledEvent.
        参数:
        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

        public ServletRequestHandledEvent​(Object source,
                                          String requestUrl,
                                          String clientAddress,
                                          String method,
                                          String servletName,
                                          String sessionId,
                                          String userName,
                                          long processingTimeMillis,
                                          Throwable failureCause)
        Create a new ServletRequestHandledEvent.
        参数:
        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

        public ServletRequestHandledEvent​(Object source,
                                          String requestUrl,
                                          String clientAddress,
                                          String method,
                                          String servletName,
                                          String sessionId,
                                          String userName,
                                          long processingTimeMillis,
                                          Throwable failureCause,
                                          int statusCode)
        Create a new ServletRequestHandledEvent.
        参数:
        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