Class HttpClientSupplier

java.lang.Object
com.helixframework.rules.rule.rest.HttpClientSupplier
All Implemented Interfaces:
Supplier<okhttp3.OkHttpClient>

public class HttpClientSupplier extends Object implements Supplier<okhttp3.OkHttpClient>
Supplier that supplies a singleton instance of the OkHttpClient.
  • Method Details

    • getInstance

      public static HttpClientSupplier getInstance()
      Gets the singleton instance of HttpClientSupplier.
      Returns:
      supplier instance
    • get

      public okhttp3.OkHttpClient get()
      Gets the http client.
      Specified by:
      get in interface Supplier<okhttp3.OkHttpClient>
      Returns:
      http client