java.lang.Object
io.prometheus.metrics.exporter.servlet.jakarta.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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • getRequest

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

      public io.prometheus.metrics.exporter.common.PrometheusHttpResponse 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