Interface OkHttpClientBuilderProvider
- All Known Implementing Classes:
DefaultOkHttpClientBuilderProvider,InsecureOkHttpClientBuilderProvider,RefreshableOkHttpClientBuilderProvider
public interface OkHttpClientBuilderProvider
Provider interface that concrete implementations will use to provide a customized
OkHttpClient.Builder.-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.OkHttpClient.Builderget(ServiceEndpoint service) Creates a new and customizedOkHttpClient.Builderfor the provided service.default Booleansupports(ServiceEndpoint service) Returns whether or not the provider supports the provided service endpoint.
-
Method Details
-
supports
Returns whether or not the provider supports the provided service endpoint.- Parameters:
service- service configuration- Returns:
- true if supports the url given
-
get
Creates a new and customizedOkHttpClient.Builderfor the provided service.- Parameters:
service- service config- Returns:
- the builder
-