Class HttpExchangeAdapter.Response
java.lang.Object
io.prometheus.metrics.exporter.servlet.javax.HttpExchangeAdapter.Response
- All Implemented Interfaces:
io.prometheus.metrics.exporter.common.PrometheusHttpResponse
- Enclosing class:
- HttpExchangeAdapter
public static class HttpExchangeAdapter.Response
extends Object
implements io.prometheus.metrics.exporter.common.PrometheusHttpResponse
This inner class adapts a HttpServletResponse to a PrometheusHttpResponse.
-
Constructor Summary
ConstructorsConstructorDescriptionResponse(javax.servlet.http.HttpServletResponse response) Constructs a new Response with the given HttpServletResponse. -
Method Summary
-
Constructor Details
-
Response
public Response(javax.servlet.http.HttpServletResponse response) Constructs a new Response with the given HttpServletResponse.- Parameters:
response- the HttpServletResponse to be adapted
-
-
Method Details
-
setHeader
- Specified by:
setHeaderin interfaceio.prometheus.metrics.exporter.common.PrometheusHttpResponse
-
sendHeadersAndGetBody
- Specified by:
sendHeadersAndGetBodyin interfaceio.prometheus.metrics.exporter.common.PrometheusHttpResponse- Throws:
IOException
-