Class OkHttpClientProvider
- java.lang.Object
-
- com.netflix.spinnaker.config.okhttp3.OkHttpClientProvider
-
@Component public class OkHttpClientProvider extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OkHttpClientProvider(java.util.List<OkHttpClientBuilderProvider> providers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.OkHttpClientgetClient(ServiceEndpoint service)Consults the provider impls to decide which provider class can build a client for the given service config and delegates to that provider to build a client.
-
-
-
Constructor Detail
-
OkHttpClientProvider
public OkHttpClientProvider(java.util.List<OkHttpClientBuilderProvider> providers)
-
-
Method Detail
-
getClient
public okhttp3.OkHttpClient getClient(ServiceEndpoint service)
Consults the provider impls to decide which provider class can build a client for the given service config and delegates to that provider to build a client.- Parameters:
service- service configuration- Returns:
- okHttpClient
-
-