Class HttpExchangeAdapter
java.lang.Object
io.prometheus.metrics.exporter.httpserver.HttpExchangeAdapter
- All Implemented Interfaces:
PrometheusHttpExchange,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpExchangeprivate final HttpExchangeAdapter.HttpRequestprivate final HttpExchangeAdapter.HttpResponseprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidprivate voidsendErrorResponseWithStackTrace(Exception requestHandlerException)
-
Field Details
-
httpExchange
-
request
-
response
-
responseSent
private volatile boolean responseSent
-
-
Constructor Details
-
HttpExchangeAdapter
-
-
Method Details
-
getRequest
- Specified by:
getRequestin interfacePrometheusHttpExchange
-
getResponse
- Specified by:
getResponsein interfacePrometheusHttpExchange
-
handleException
- Specified by:
handleExceptionin interfacePrometheusHttpExchange- Throws:
IOException
-
handleException
- Specified by:
handleExceptionin interfacePrometheusHttpExchange
-
sendErrorResponseWithStackTrace
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePrometheusHttpExchange
-