Class OkHttpBasicClientFactory

java.lang.Object
com.janeirodigital.shapetrees.client.okhttp.OkHttpBasicClientFactory
All Implemented Interfaces:
OkHttpClientFactory

public class OkHttpBasicClientFactory extends Object implements OkHttpClientFactory
Basic factory to get a OkHttp HTTP client, implementing OkHttpClientFactory. This is the default client factory provided by OkHttpClientFactoryManager when a more robust client factory is not assigned.
See Also:
  • OkHttp - HTTP client library from Square
  • Constructor Details

    • OkHttpBasicClientFactory

      public OkHttpBasicClientFactory()
  • Method Details

    • getOkHttpClient

      public okhttp3.OkHttpClient getOkHttpClient()
      Get an OkHttpClient without any special configuration or settings
      Specified by:
      getOkHttpClient in interface OkHttpClientFactory
      Returns:
      Basic OkHttpClient