Object
HttpExchangeAdapter
All Implemented Interfaces:
PrometheusHttpExchange, AutoCloseable

public class HttpExchangeAdapter extends Object implements PrometheusHttpExchange
  • Constructor Details

    • HttpExchangeAdapter

      public HttpExchangeAdapter(HttpServletRequest request, HttpServletResponse response)
  • Method Details

    • getRequest

      public PrometheusHttpRequest getRequest()
      Specified by:
      getRequest in interface PrometheusHttpExchange
    • getResponse

      public PrometheusHttpResponse getResponse()
      Specified by:
      getResponse in interface PrometheusHttpExchange
    • handleException

      public void handleException(IOException e) throws IOException
      Specified by:
      handleException in interface PrometheusHttpExchange
      Throws:
      IOException
    • handleException

      Specified by:
      handleException in interface PrometheusHttpExchange
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface PrometheusHttpExchange