- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
145 lines
5.1 KiB
Java
145 lines
5.1 KiB
Java
package com.amazonaws;
|
|
|
|
import com.amazonaws.retry.PredefinedRetryPolicies;
|
|
import com.amazonaws.retry.RetryPolicy;
|
|
import com.amazonaws.util.VersionInfoUtils;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.DefaultLoadControl;
|
|
import java.net.InetAddress;
|
|
import javax.net.ssl.TrustManager;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ClientConfiguration {
|
|
public int connectionTimeout;
|
|
public boolean curlLogging;
|
|
public boolean enableGzip;
|
|
public InetAddress localAddress;
|
|
public int maxConnections;
|
|
public int maxErrorRetry;
|
|
public boolean preemptiveBasicProxyAuth;
|
|
public Protocol protocol;
|
|
public String proxyDomain;
|
|
public String proxyHost;
|
|
public String proxyPassword;
|
|
public int proxyPort;
|
|
public String proxyUsername;
|
|
public String proxyWorkstation;
|
|
public RetryPolicy retryPolicy;
|
|
public String signerOverride;
|
|
public int socketReceiveBufferSizeHint;
|
|
public int socketSendBufferSizeHint;
|
|
public int socketTimeout;
|
|
public TrustManager trustManager;
|
|
public String userAgent;
|
|
public String userAgentOverride;
|
|
public static final String DEFAULT_USER_AGENT = VersionInfoUtils.getUserAgent();
|
|
public static final RetryPolicy DEFAULT_RETRY_POLICY = PredefinedRetryPolicies.DEFAULT;
|
|
|
|
public int getConnectionTimeout() {
|
|
return this.connectionTimeout;
|
|
}
|
|
|
|
public int getMaxErrorRetry() {
|
|
return this.maxErrorRetry;
|
|
}
|
|
|
|
public Protocol getProtocol() {
|
|
return this.protocol;
|
|
}
|
|
|
|
public RetryPolicy getRetryPolicy() {
|
|
return this.retryPolicy;
|
|
}
|
|
|
|
public String getSignerOverride() {
|
|
return this.signerOverride;
|
|
}
|
|
|
|
public int getSocketTimeout() {
|
|
return this.socketTimeout;
|
|
}
|
|
|
|
public TrustManager getTrustManager() {
|
|
return this.trustManager;
|
|
}
|
|
|
|
public String getUserAgent() {
|
|
return this.userAgent;
|
|
}
|
|
|
|
public String getUserAgentOverride() {
|
|
return this.userAgentOverride;
|
|
}
|
|
|
|
public boolean isCurlLogging() {
|
|
return this.curlLogging;
|
|
}
|
|
|
|
public boolean isEnableGzip() {
|
|
return this.enableGzip;
|
|
}
|
|
|
|
public ClientConfiguration() {
|
|
this.userAgent = DEFAULT_USER_AGENT;
|
|
this.maxErrorRetry = -1;
|
|
this.retryPolicy = DEFAULT_RETRY_POLICY;
|
|
this.protocol = Protocol.HTTPS;
|
|
this.proxyHost = null;
|
|
this.proxyPort = -1;
|
|
this.proxyUsername = null;
|
|
this.proxyPassword = null;
|
|
this.proxyDomain = null;
|
|
this.proxyWorkstation = null;
|
|
this.maxConnections = 10;
|
|
this.socketTimeout = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS;
|
|
this.connectionTimeout = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS;
|
|
this.socketSendBufferSizeHint = 0;
|
|
this.socketReceiveBufferSizeHint = 0;
|
|
this.trustManager = null;
|
|
this.curlLogging = false;
|
|
this.enableGzip = false;
|
|
}
|
|
|
|
public ClientConfiguration(ClientConfiguration clientConfiguration) {
|
|
this.userAgent = DEFAULT_USER_AGENT;
|
|
this.maxErrorRetry = -1;
|
|
this.retryPolicy = DEFAULT_RETRY_POLICY;
|
|
this.protocol = Protocol.HTTPS;
|
|
this.proxyHost = null;
|
|
this.proxyPort = -1;
|
|
this.proxyUsername = null;
|
|
this.proxyPassword = null;
|
|
this.proxyDomain = null;
|
|
this.proxyWorkstation = null;
|
|
this.maxConnections = 10;
|
|
this.socketTimeout = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS;
|
|
this.connectionTimeout = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS;
|
|
this.socketSendBufferSizeHint = 0;
|
|
this.socketReceiveBufferSizeHint = 0;
|
|
this.trustManager = null;
|
|
this.curlLogging = false;
|
|
this.enableGzip = false;
|
|
this.connectionTimeout = clientConfiguration.connectionTimeout;
|
|
this.maxConnections = clientConfiguration.maxConnections;
|
|
this.maxErrorRetry = clientConfiguration.maxErrorRetry;
|
|
this.retryPolicy = clientConfiguration.retryPolicy;
|
|
this.localAddress = clientConfiguration.localAddress;
|
|
this.protocol = clientConfiguration.protocol;
|
|
this.proxyDomain = clientConfiguration.proxyDomain;
|
|
this.proxyHost = clientConfiguration.proxyHost;
|
|
this.proxyPassword = clientConfiguration.proxyPassword;
|
|
this.proxyPort = clientConfiguration.proxyPort;
|
|
this.proxyUsername = clientConfiguration.proxyUsername;
|
|
this.proxyWorkstation = clientConfiguration.proxyWorkstation;
|
|
this.preemptiveBasicProxyAuth = clientConfiguration.preemptiveBasicProxyAuth;
|
|
this.socketTimeout = clientConfiguration.socketTimeout;
|
|
this.userAgent = clientConfiguration.userAgent;
|
|
this.userAgentOverride = clientConfiguration.userAgentOverride;
|
|
this.socketReceiveBufferSizeHint = clientConfiguration.socketReceiveBufferSizeHint;
|
|
this.socketSendBufferSizeHint = clientConfiguration.socketSendBufferSizeHint;
|
|
this.signerOverride = clientConfiguration.signerOverride;
|
|
this.trustManager = clientConfiguration.trustManager;
|
|
this.curlLogging = clientConfiguration.curlLogging;
|
|
this.enableGzip = clientConfiguration.enableGzip;
|
|
}
|
|
}
|