public class RequestCountHttpHandler extends Object implements io.undertow.server.HttpHandler
HttpHandler
that counts number of incoming requests.Constructor and Description |
---|
RequestCountHttpHandler(io.undertow.server.HttpHandler handler) |
Modifier and Type | Method and Description |
---|---|
static long |
getRequestCount() |
void |
handleRequest(io.undertow.server.HttpServerExchange httpServerExchange) |
public RequestCountHttpHandler(io.undertow.server.HttpHandler handler)
public void handleRequest(io.undertow.server.HttpServerExchange httpServerExchange) throws Exception
handleRequest
in interface io.undertow.server.HttpHandler
Exception
public static long getRequestCount()
Copyright © 2014 JBoss by Red Hat. All rights reserved.