public class HttpConnectionSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TIMEOUT_SECONDS |
| Constructor and Description |
|---|
HttpConnectionSettings()
Empty constructor: allows quick access to default settings.
|
HttpConnectionSettings(SSLContext sslContext,
X509TrustManager trustManager,
okhttp3.Interceptor customInterceptor,
int readTimeoutSeconds,
int connectTimeoutSeconds,
boolean retryOnConnectionFailure) |
HttpConnectionSettings(SSLContext sslContext,
X509TrustManager trustManager,
okhttp3.Interceptor customInterceptor,
int readTimeoutSeconds,
int connectTimeoutSeconds,
boolean retryOnConnectionFailure,
boolean includeLoggingInterceptor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeoutSeconds() |
okhttp3.Interceptor |
getCustomInterceptor() |
int |
getReadTimeoutSeconds() |
SSLContext |
getSslContext() |
X509TrustManager |
getTrustManager() |
boolean |
isLoggingInterceptorEnabled() |
boolean |
isRetryOnConnectionFailure() |
public static final int DEFAULT_TIMEOUT_SECONDS
public HttpConnectionSettings(SSLContext sslContext, X509TrustManager trustManager, okhttp3.Interceptor customInterceptor, int readTimeoutSeconds, int connectTimeoutSeconds, boolean retryOnConnectionFailure)
public HttpConnectionSettings(SSLContext sslContext, X509TrustManager trustManager, okhttp3.Interceptor customInterceptor, int readTimeoutSeconds, int connectTimeoutSeconds, boolean retryOnConnectionFailure, boolean includeLoggingInterceptor)
public HttpConnectionSettings()
public SSLContext getSslContext()
public X509TrustManager getTrustManager()
public okhttp3.Interceptor getCustomInterceptor()
public int getReadTimeoutSeconds()
public int getConnectTimeoutSeconds()
public boolean isRetryOnConnectionFailure()
public boolean isLoggingInterceptorEnabled()
Copyright © 2022. All rights reserved.