Class RestClientWrapper

java.lang.Object
org.apache.drill.exec.store.druid.rest.RestClientWrapper
All Implemented Interfaces:
RestClient

public class RestClientWrapper extends Object implements RestClient
  • Constructor Details

    • RestClientWrapper

      public RestClientWrapper()
  • Method Details

    • get

      public okhttp3.Response get(String url) throws IOException
      Description copied from interface: RestClient
      Executes an HTTP GET.
      Specified by:
      get in interface RestClient
      Parameters:
      url - request URL
      Returns:
      a Response object that the caller is responsible for closing.
      Throws:
      IOException
    • post

      public okhttp3.Response post(String url, String body) throws IOException
      Description copied from interface: RestClient
      Executes an HTTP POST.
      Specified by:
      post in interface RestClient
      Parameters:
      url - request URL.
      body - request body.
      Returns:
      a Response object that the caller is responsible for closing.
      Throws:
      IOException