Class HttpExchangeAdapter
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionHttpExchangeAdapter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()io.prometheus.metrics.exporter.common.PrometheusHttpRequestio.prometheus.metrics.exporter.common.PrometheusHttpResponsevoidvoid
-
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:
getRequestin interfaceio.prometheus.metrics.exporter.common.PrometheusHttpExchange
-
getResponse
public io.prometheus.metrics.exporter.common.PrometheusHttpResponse getResponse()- Specified by:
getResponsein interfaceio.prometheus.metrics.exporter.common.PrometheusHttpExchange
-
handleException
- Specified by:
handleExceptionin interfaceio.prometheus.metrics.exporter.common.PrometheusHttpExchange- Throws:
IOException
-
handleException
- Specified by:
handleExceptionin interfaceio.prometheus.metrics.exporter.common.PrometheusHttpExchange
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.prometheus.metrics.exporter.common.PrometheusHttpExchange
-