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