what-the-bank/sources/okhttp3/repackaged/internal/huc/HttpsURLConnectionImpl.java

361 lines
14 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.repackaged.internal.huc;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ProtocolException;
import java.net.URL;
import java.security.Permission;
import java.security.Principal;
import java.security.cert.Certificate;
import java.util.Map;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSocketFactory;
import okhttp3.repackaged.Handshake;
import okhttp3.repackaged.OkHttpClient;
import okhttp3.repackaged.internal.URLFilter;
/* loaded from: classes6.dex */
public final class HttpsURLConnectionImpl extends a {
private final HttpURLConnectionImpl amO;
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void addRequestProperty(String str, String str2) {
super.addRequestProperty(str, str2);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void connect() throws IOException {
super.connect();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ void disconnect() {
super.disconnect();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ boolean getAllowUserInteraction() {
return super.getAllowUserInteraction();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final /* bridge */ /* synthetic */ String getCipherSuite() {
return super.getCipherSuite();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ int getConnectTimeout() {
return super.getConnectTimeout();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ Object getContent() throws IOException {
return super.getContent();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ Object getContent(Class[] clsArr) throws IOException {
return super.getContent(clsArr);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ String getContentEncoding() {
return super.getContentEncoding();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ int getContentLength() {
return super.getContentLength();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ String getContentType() {
return super.getContentType();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ long getDate() {
return super.getDate();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ boolean getDefaultUseCaches() {
return super.getDefaultUseCaches();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ boolean getDoInput() {
return super.getDoInput();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ boolean getDoOutput() {
return super.getDoOutput();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ InputStream getErrorStream() {
return super.getErrorStream();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ long getExpiration() {
return super.getExpiration();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection, java.net.URLConnection
public final /* bridge */ /* synthetic */ String getHeaderField(int i) {
return super.getHeaderField(i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ String getHeaderField(String str) {
return super.getHeaderField(str);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection, java.net.URLConnection
public final /* bridge */ /* synthetic */ long getHeaderFieldDate(String str, long j) {
return super.getHeaderFieldDate(str, j);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ int getHeaderFieldInt(String str, int i) {
return super.getHeaderFieldInt(str, i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection, java.net.URLConnection
public final /* bridge */ /* synthetic */ String getHeaderFieldKey(int i) {
return super.getHeaderFieldKey(i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ Map getHeaderFields() {
return super.getHeaderFields();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ long getIfModifiedSince() {
return super.getIfModifiedSince();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ InputStream getInputStream() throws IOException {
return super.getInputStream();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ boolean getInstanceFollowRedirects() {
return super.getInstanceFollowRedirects();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ long getLastModified() {
return super.getLastModified();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final /* bridge */ /* synthetic */ Certificate[] getLocalCertificates() {
return super.getLocalCertificates();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final /* bridge */ /* synthetic */ Principal getLocalPrincipal() {
return super.getLocalPrincipal();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ OutputStream getOutputStream() throws IOException {
return super.getOutputStream();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final /* bridge */ /* synthetic */ Principal getPeerPrincipal() throws SSLPeerUnverifiedException {
return super.getPeerPrincipal();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection, java.net.URLConnection
public final /* bridge */ /* synthetic */ Permission getPermission() throws IOException {
return super.getPermission();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ int getReadTimeout() {
return super.getReadTimeout();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ String getRequestMethod() {
return super.getRequestMethod();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ Map getRequestProperties() {
return super.getRequestProperties();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ String getRequestProperty(String str) {
return super.getRequestProperty(str);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ int getResponseCode() throws IOException {
return super.getResponseCode();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ String getResponseMessage() throws IOException {
return super.getResponseMessage();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final /* bridge */ /* synthetic */ Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {
return super.getServerCertificates();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ URL getURL() {
return super.getURL();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ boolean getUseCaches() {
return super.getUseCaches();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setAllowUserInteraction(boolean z) {
super.setAllowUserInteraction(z);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ void setChunkedStreamingMode(int i) {
super.setChunkedStreamingMode(i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setConnectTimeout(int i) {
super.setConnectTimeout(i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setDefaultUseCaches(boolean z) {
super.setDefaultUseCaches(z);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setDoInput(boolean z) {
super.setDoInput(z);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setDoOutput(boolean z) {
super.setDoOutput(z);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ void setFixedLengthStreamingMode(int i) {
super.setFixedLengthStreamingMode(i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setIfModifiedSince(long j) {
super.setIfModifiedSince(j);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ void setInstanceFollowRedirects(boolean z) {
super.setInstanceFollowRedirects(z);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setReadTimeout(int i) {
super.setReadTimeout(i);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ void setRequestMethod(String str) throws ProtocolException {
super.setRequestMethod(str);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setRequestProperty(String str, String str2) {
super.setRequestProperty(str, str2);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ void setUseCaches(boolean z) {
super.setUseCaches(z);
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.URLConnection
public final /* bridge */ /* synthetic */ String toString() {
return super.toString();
}
@Override // okhttp3.repackaged.internal.huc.a, java.net.HttpURLConnection
public final /* bridge */ /* synthetic */ boolean usingProxy() {
return super.usingProxy();
}
public HttpsURLConnectionImpl(URL url, OkHttpClient okHttpClient) {
this(new HttpURLConnectionImpl(url, okHttpClient));
}
public HttpsURLConnectionImpl(URL url, OkHttpClient okHttpClient, URLFilter uRLFilter) {
this(new HttpURLConnectionImpl(url, okHttpClient, uRLFilter));
}
public HttpsURLConnectionImpl(HttpURLConnectionImpl httpURLConnectionImpl) {
super(httpURLConnectionImpl);
this.amO = httpURLConnectionImpl;
}
@Override // okhttp3.repackaged.internal.huc.a
protected final Handshake handshake() {
if (this.amO.httpEngine != null) {
return this.amO.httpEngine.hasResponse() ? this.amO.httpEngine.getResponse().handshake() : this.amO.agZ;
}
throw new IllegalStateException("Connection has not yet been established");
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final void setHostnameVerifier(HostnameVerifier hostnameVerifier) {
HttpURLConnectionImpl httpURLConnectionImpl = this.amO;
httpURLConnectionImpl.client = httpURLConnectionImpl.client.newBuilder().hostnameVerifier(hostnameVerifier).build();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final HostnameVerifier getHostnameVerifier() {
return this.amO.client.hostnameVerifier();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final void setSSLSocketFactory(SSLSocketFactory sSLSocketFactory) {
HttpURLConnectionImpl httpURLConnectionImpl = this.amO;
httpURLConnectionImpl.client = httpURLConnectionImpl.client.newBuilder().sslSocketFactory(sSLSocketFactory).build();
}
@Override // okhttp3.repackaged.internal.huc.a, javax.net.ssl.HttpsURLConnection
public final SSLSocketFactory getSSLSocketFactory() {
return this.amO.client.sslSocketFactory();
}
@Override // java.net.URLConnection
public final long getContentLengthLong() {
return this.amO.getContentLengthLong();
}
@Override // java.net.HttpURLConnection
public final void setFixedLengthStreamingMode(long j) {
this.amO.setFixedLengthStreamingMode(j);
}
@Override // java.net.URLConnection
public final long getHeaderFieldLong(String str, long j) {
return this.amO.getHeaderFieldLong(str, j);
}
}