java.lang.Object
io.prometheus.metrics.exporter.servlet.javax.HttpExchangeAdapter.Request
All Implemented Interfaces:
io.prometheus.metrics.exporter.common.PrometheusHttpRequest, io.prometheus.metrics.model.registry.PrometheusScrapeRequest
Enclosing class:
HttpExchangeAdapter

public static class HttpExchangeAdapter.Request extends Object implements io.prometheus.metrics.exporter.common.PrometheusHttpRequest
This inner class adapts a HttpServletRequest to a PrometheusHttpRequest.
  • Constructor Details

    • Request

      public Request(javax.servlet.http.HttpServletRequest request)
      Constructs a new Request with the given HttpServletRequest.
      Parameters:
      request - the HttpServletRequest to be adapted
  • Method Details

    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface io.prometheus.metrics.exporter.common.PrometheusHttpRequest
    • getHeaders

      public Enumeration<String> getHeaders(String name)
      Specified by:
      getHeaders in interface io.prometheus.metrics.exporter.common.PrometheusHttpRequest
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface io.prometheus.metrics.exporter.common.PrometheusHttpRequest
    • getRequestPath

      public String getRequestPath()
      Specified by:
      getRequestPath in interface io.prometheus.metrics.model.registry.PrometheusScrapeRequest