java.lang.Object
io.prometheus.metrics.exporter.httpserver.HttpExchangeAdapter
All Implemented Interfaces:
io.prometheus.metrics.exporter.common.PrometheusHttpExchange, AutoCloseable

public class HttpExchangeAdapter extends Object implements io.prometheus.metrics.exporter.common.PrometheusHttpExchange
  • Constructor Details

    • HttpExchangeAdapter

      public HttpExchangeAdapter(com.sun.net.httpserver.HttpExchange httpExchange)
  • Method Details

    • getRequest

      public HttpExchangeAdapter.HttpRequest getRequest()
      Specified by:
      getRequest in interface io.prometheus.metrics.exporter.common.PrometheusHttpExchange
    • getResponse

      public HttpExchangeAdapter.HttpResponse getResponse()
      Specified by:
      getResponse in interface io.prometheus.metrics.exporter.common.PrometheusHttpExchange
    • handleException

      public void handleException(IOException e) throws IOException
      Specified by:
      handleException in interface io.prometheus.metrics.exporter.common.PrometheusHttpExchange
      Throws:
      IOException
    • handleException

      public void handleException(RuntimeException e)
      Specified by:
      handleException in interface io.prometheus.metrics.exporter.common.PrometheusHttpExchange
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface io.prometheus.metrics.exporter.common.PrometheusHttpExchange