Class HttpExchangeAdapter.Request
Object
Request
- All Implemented Interfaces:
PrometheusHttpRequest
,PrometheusScrapeRequest
- Enclosing class:
- HttpExchangeAdapter
This inner class adapts a HttpServletRequest to a PrometheusHttpRequest.
-
Constructor Summary
ConstructorDescriptionRequest
(HttpServletRequest request) Constructs a new Request with the given HttpServletRequest. -
Method Summary
Modifier and TypeMethodDescriptiongetHeaders
(String name) Seejakarta.servlet.http.HttpServletRequest.getHeaders(String)
Seejakarta.servlet.http.HttpServletRequest.getMethod()
Seejakarta.servlet.http.HttpServletRequest.getQueryString()
Absolute path of the HTTP request.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface PrometheusHttpRequest
getHeader, getParameter, getParameterValues
-
Constructor Details
-
Request
Constructs a new Request with the given HttpServletRequest.- Parameters:
request
- the HttpServletRequest to be adapted
-
-
Method Details
-
getQueryString
Description copied from interface:PrometheusHttpRequest
Seejakarta.servlet.http.HttpServletRequest.getQueryString()
- Specified by:
getQueryString
in interfacePrometheusHttpRequest
-
getHeaders
Description copied from interface:PrometheusHttpRequest
Seejakarta.servlet.http.HttpServletRequest.getHeaders(String)
- Specified by:
getHeaders
in interfacePrometheusHttpRequest
-
getMethod
Description copied from interface:PrometheusHttpRequest
Seejakarta.servlet.http.HttpServletRequest.getMethod()
- Specified by:
getMethod
in interfacePrometheusHttpRequest
-
getRequestPath
Description copied from interface:PrometheusScrapeRequest
Absolute path of the HTTP request.- Specified by:
getRequestPath
in interfacePrometheusScrapeRequest
-