Class RawOkHttpClientFactory

java.lang.Object
com.netflix.spinnaker.config.okhttp3.RawOkHttpClientFactory

public class RawOkHttpClientFactory extends Object
Builds an OkHttpClient that should be can be used as-is or as a foundation for more custom OkHttpClient needs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.OkHttpClient
    create(com.netflix.spinnaker.okhttp.OkHttpClientConfigurationProperties okHttpClientConfigurationProperties, List<okhttp3.Interceptor> interceptors, brave.http.HttpTracing httpTracing)
    Returns a basic client which can be further customized for other needs in the OkHttpClientProvider implementations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RawOkHttpClientFactory

      public RawOkHttpClientFactory()
  • Method Details

    • create

      public okhttp3.OkHttpClient create(com.netflix.spinnaker.okhttp.OkHttpClientConfigurationProperties okHttpClientConfigurationProperties, List<okhttp3.Interceptor> interceptors, brave.http.HttpTracing httpTracing)
      Returns a basic client which can be further customized for other needs in the OkHttpClientProvider implementations. (eg: SSL setup, name verifier etc)