Class RequestCountHttpHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class RequestCountHttpHandler
    extends Object
    implements io.undertow.server.HttpHandler
    HttpHandler that counts number of incoming requests.
    Since:
    8.0
    Author:
    Radoslav Husar
    • Constructor Detail

      • RequestCountHttpHandler

        public RequestCountHttpHandler​(io.undertow.server.HttpHandler handler)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange httpServerExchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception
      • getRequestCount

        public static long getRequestCount()
        Returns:
        long value of all incoming requests on all connectors