Interface OkHttpClientFactory
- All Known Implementing Classes:
DefaultOkHttpClientFactory
public interface OkHttpClientFactory
Creates new
OkHttpClients.- Author:
- Ryan Baxter
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAX509TrustManagerthat does not validate SSL certificates.static classAHostnameVerifierthat does not validate any hostnames. -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.OkHttpClient.BuildercreateBuilder(boolean disableSslValidation) Creates aOkHttpClient.Builderused to build anOkHttpClient.
-
Method Details
-
createBuilder
okhttp3.OkHttpClient.Builder createBuilder(boolean disableSslValidation) Creates aOkHttpClient.Builderused to build anOkHttpClient.- Parameters:
disableSslValidation- Disables SSL validation- Returns:
- A new
OkHttpClient.Builder
-