Class RestMetricsHandler

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

    public class RestMetricsHandler
    extends java.lang.Object
    implements io.undertow.server.HttpHandler
    Handler that records some metrics
    Author:
    Stuart Douglas

    Modified by Josh Gontijo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.undertow.server.HttpHandler next  
    • Constructor Summary

      Constructors 
      Constructor Description
      RestMetricsHandler​(io.undertow.server.HttpHandler next)  
    • Method Summary

      Modifier and Type Method Description
      void handleRequest​(io.undertow.server.HttpServerExchange exchange)  
      void reset()  
      void setEnabled​(boolean enabled)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • next

        protected final io.undertow.server.HttpHandler next
    • Constructor Detail

      • RestMetricsHandler

        public RestMetricsHandler​(io.undertow.server.HttpHandler next)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws java.lang.Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        java.lang.Exception
      • reset

        public void reset()
      • setEnabled

        public void setEnabled​(boolean enabled)