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) |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeoutSeconds() |
okhttp3.Interceptor |
getCustomInterceptor() |
int |
getReadTimeoutSeconds() |
SSLContext |
getSslContext() |
X509TrustManager |
getTrustManager() |
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()
public SSLContext getSslContext()
public X509TrustManager getTrustManager()
public okhttp3.Interceptor getCustomInterceptor()
public int getReadTimeoutSeconds()
public int getConnectTimeoutSeconds()
public boolean isRetryOnConnectionFailure()
Copyright © 2018. All rights reserved.