mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-23 15:42:34 -06:00
199 lines
14 KiB
Java
199 lines
14 KiB
Java
package okhttp3;
|
|
|
|
import io.sentry.okhttp.SentryOkHttpEventListener;
|
|
import io.sentry.protocol.Request;
|
|
import java.net.Proxy;
|
|
import java.net.ProxySelector;
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
import javax.net.SocketFactory;
|
|
import javax.net.ssl.HostnameVerifier;
|
|
import javax.net.ssl.SSLSocketFactory;
|
|
import kotlin.Deprecated;
|
|
import kotlin.DeprecationLevel;
|
|
import kotlin.Metadata;
|
|
import kotlin.ReplaceWith;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import okhttp3.HttpUrl;
|
|
import okhttp3.internal.Util;
|
|
|
|
/* compiled from: Address.kt */
|
|
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u000f\u0018\u00002\u00020\u0001By\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u000b\u0012\b\u0010\f\u001a\u0004\u0018\u00010\r\u0012\b\u0010\u000e\u001a\u0004\u0018\u00010\u000f\u0012\u0006\u0010\u0010\u001a\u00020\u0011\u0012\b\u0010\u0012\u001a\u0004\u0018\u00010\u0013\u0012\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00160\u0015\u0012\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00180\u0015\u0012\u0006\u0010\u0019\u001a\u00020\u001a¢\u0006\u0002\u0010\u001bJ\u000f\u0010\u000e\u001a\u0004\u0018\u00010\u000fH\u0007¢\u0006\u0002\b(J\u0013\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00180\u0015H\u0007¢\u0006\u0002\b)J\r\u0010\u0006\u001a\u00020\u0007H\u0007¢\u0006\u0002\b*J\u0013\u0010+\u001a\u00020,2\b\u0010-\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\u0015\u0010.\u001a\u00020,2\u0006\u0010/\u001a\u00020\u0000H\u0000¢\u0006\u0002\b0J\b\u00101\u001a\u00020\u0005H\u0016J\u000f\u0010\f\u001a\u0004\u0018\u00010\rH\u0007¢\u0006\u0002\b2J\u0013\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00160\u0015H\u0007¢\u0006\u0002\b3J\u000f\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0007¢\u0006\u0002\b4J\r\u0010\u0010\u001a\u00020\u0011H\u0007¢\u0006\u0002\b5J\r\u0010\u0019\u001a\u00020\u001aH\u0007¢\u0006\u0002\b6J\r\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\b7J\u000f\u0010\n\u001a\u0004\u0018\u00010\u000bH\u0007¢\u0006\u0002\b8J\b\u00109\u001a\u00020\u0003H\u0016J\r\u0010%\u001a\u00020&H\u0007¢\u0006\u0002\b:R\u0015\u0010\u000e\u001a\u0004\u0018\u00010\u000f8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u001cR\u0019\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00180\u00158G¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u001dR\u0013\u0010\u0006\u001a\u00020\u00078\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u001eR\u0015\u0010\f\u001a\u0004\u0018\u00010\r8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u001fR\u0019\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00160\u00158G¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u001dR\u0015\u0010\u0012\u001a\u0004\u0018\u00010\u00138\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010 R\u0013\u0010\u0010\u001a\u00020\u00118\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010!R\u0013\u0010\u0019\u001a\u00020\u001a8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\"R\u0013\u0010\b\u001a\u00020\t8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010#R\u0015\u0010\n\u001a\u0004\u0018\u00010\u000b8\u0007¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010$R\u0013\u0010%\u001a\u00020&8G¢\u0006\b\n\u0000\u001a\u0004\b%\u0010'¨\u0006;"}, d2 = {"Lokhttp3/Address;", "", "uriHost", "", "uriPort", "", SentryOkHttpEventListener.DNS_EVENT, "Lokhttp3/Dns;", "socketFactory", "Ljavax/net/SocketFactory;", "sslSocketFactory", "Ljavax/net/ssl/SSLSocketFactory;", "hostnameVerifier", "Ljavax/net/ssl/HostnameVerifier;", "certificatePinner", "Lokhttp3/CertificatePinner;", "proxyAuthenticator", "Lokhttp3/Authenticator;", "proxy", "Ljava/net/Proxy;", "protocols", "", "Lokhttp3/Protocol;", "connectionSpecs", "Lokhttp3/ConnectionSpec;", "proxySelector", "Ljava/net/ProxySelector;", "(Ljava/lang/String;ILokhttp3/Dns;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lokhttp3/CertificatePinner;Lokhttp3/Authenticator;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V", "()Lokhttp3/CertificatePinner;", "()Ljava/util/List;", "()Lokhttp3/Dns;", "()Ljavax/net/ssl/HostnameVerifier;", "()Ljava/net/Proxy;", "()Lokhttp3/Authenticator;", "()Ljava/net/ProxySelector;", "()Ljavax/net/SocketFactory;", "()Ljavax/net/ssl/SSLSocketFactory;", Request.JsonKeys.URL, "Lokhttp3/HttpUrl;", "()Lokhttp3/HttpUrl;", "-deprecated_certificatePinner", "-deprecated_connectionSpecs", "-deprecated_dns", "equals", "", "other", "equalsNonHost", "that", "equalsNonHost$okhttp", "hashCode", "-deprecated_hostnameVerifier", "-deprecated_protocols", "-deprecated_proxy", "-deprecated_proxyAuthenticator", "-deprecated_proxySelector", "-deprecated_socketFactory", "-deprecated_sslSocketFactory", "toString", "-deprecated_url", "okhttp"}, k = 1, mv = {1, 4, 0})
|
|
/* loaded from: classes3.dex */
|
|
public final class Address {
|
|
private final CertificatePinner certificatePinner;
|
|
private final List<ConnectionSpec> connectionSpecs;
|
|
private final Dns dns;
|
|
private final HostnameVerifier hostnameVerifier;
|
|
private final List<Protocol> protocols;
|
|
private final Proxy proxy;
|
|
private final Authenticator proxyAuthenticator;
|
|
private final ProxySelector proxySelector;
|
|
private final SocketFactory socketFactory;
|
|
private final SSLSocketFactory sslSocketFactory;
|
|
private final HttpUrl url;
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "certificatePinner", imports = {}))
|
|
/* renamed from: -deprecated_certificatePinner, reason: not valid java name and from getter */
|
|
public final CertificatePinner getCertificatePinner() {
|
|
return this.certificatePinner;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "connectionSpecs", imports = {}))
|
|
/* renamed from: -deprecated_connectionSpecs, reason: not valid java name */
|
|
public final List<ConnectionSpec> m7271deprecated_connectionSpecs() {
|
|
return this.connectionSpecs;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = SentryOkHttpEventListener.DNS_EVENT, imports = {}))
|
|
/* renamed from: -deprecated_dns, reason: not valid java name and from getter */
|
|
public final Dns getDns() {
|
|
return this.dns;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "hostnameVerifier", imports = {}))
|
|
/* renamed from: -deprecated_hostnameVerifier, reason: not valid java name and from getter */
|
|
public final HostnameVerifier getHostnameVerifier() {
|
|
return this.hostnameVerifier;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "protocols", imports = {}))
|
|
/* renamed from: -deprecated_protocols, reason: not valid java name */
|
|
public final List<Protocol> m7274deprecated_protocols() {
|
|
return this.protocols;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxy", imports = {}))
|
|
/* renamed from: -deprecated_proxy, reason: not valid java name and from getter */
|
|
public final Proxy getProxy() {
|
|
return this.proxy;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxyAuthenticator", imports = {}))
|
|
/* renamed from: -deprecated_proxyAuthenticator, reason: not valid java name and from getter */
|
|
public final Authenticator getProxyAuthenticator() {
|
|
return this.proxyAuthenticator;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxySelector", imports = {}))
|
|
/* renamed from: -deprecated_proxySelector, reason: not valid java name and from getter */
|
|
public final ProxySelector getProxySelector() {
|
|
return this.proxySelector;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "socketFactory", imports = {}))
|
|
/* renamed from: -deprecated_socketFactory, reason: not valid java name and from getter */
|
|
public final SocketFactory getSocketFactory() {
|
|
return this.socketFactory;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "sslSocketFactory", imports = {}))
|
|
/* renamed from: -deprecated_sslSocketFactory, reason: not valid java name and from getter */
|
|
public final SSLSocketFactory getSslSocketFactory() {
|
|
return this.sslSocketFactory;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = Request.JsonKeys.URL, imports = {}))
|
|
/* renamed from: -deprecated_url, reason: not valid java name and from getter */
|
|
public final HttpUrl getUrl() {
|
|
return this.url;
|
|
}
|
|
|
|
public final CertificatePinner certificatePinner() {
|
|
return this.certificatePinner;
|
|
}
|
|
|
|
public final List<ConnectionSpec> connectionSpecs() {
|
|
return this.connectionSpecs;
|
|
}
|
|
|
|
public final Dns dns() {
|
|
return this.dns;
|
|
}
|
|
|
|
public final HostnameVerifier hostnameVerifier() {
|
|
return this.hostnameVerifier;
|
|
}
|
|
|
|
public final List<Protocol> protocols() {
|
|
return this.protocols;
|
|
}
|
|
|
|
public final Proxy proxy() {
|
|
return this.proxy;
|
|
}
|
|
|
|
public final Authenticator proxyAuthenticator() {
|
|
return this.proxyAuthenticator;
|
|
}
|
|
|
|
public final ProxySelector proxySelector() {
|
|
return this.proxySelector;
|
|
}
|
|
|
|
public final SocketFactory socketFactory() {
|
|
return this.socketFactory;
|
|
}
|
|
|
|
public final SSLSocketFactory sslSocketFactory() {
|
|
return this.sslSocketFactory;
|
|
}
|
|
|
|
public final HttpUrl url() {
|
|
return this.url;
|
|
}
|
|
|
|
public Address(String uriHost, int i, Dns dns, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, CertificatePinner certificatePinner, Authenticator proxyAuthenticator, Proxy proxy, List<? extends Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) {
|
|
Intrinsics.checkNotNullParameter(uriHost, "uriHost");
|
|
Intrinsics.checkNotNullParameter(dns, "dns");
|
|
Intrinsics.checkNotNullParameter(socketFactory, "socketFactory");
|
|
Intrinsics.checkNotNullParameter(proxyAuthenticator, "proxyAuthenticator");
|
|
Intrinsics.checkNotNullParameter(protocols, "protocols");
|
|
Intrinsics.checkNotNullParameter(connectionSpecs, "connectionSpecs");
|
|
Intrinsics.checkNotNullParameter(proxySelector, "proxySelector");
|
|
this.dns = dns;
|
|
this.socketFactory = socketFactory;
|
|
this.sslSocketFactory = sSLSocketFactory;
|
|
this.hostnameVerifier = hostnameVerifier;
|
|
this.certificatePinner = certificatePinner;
|
|
this.proxyAuthenticator = proxyAuthenticator;
|
|
this.proxy = proxy;
|
|
this.proxySelector = proxySelector;
|
|
this.url = new HttpUrl.Builder().scheme(sSLSocketFactory != null ? "https" : "http").host(uriHost).port(i).build();
|
|
this.protocols = Util.toImmutableList(protocols);
|
|
this.connectionSpecs = Util.toImmutableList(connectionSpecs);
|
|
}
|
|
|
|
public boolean equals(Object other) {
|
|
if (other instanceof Address) {
|
|
Address address = (Address) other;
|
|
if (Intrinsics.areEqual(this.url, address.url) && equalsNonHost$okhttp(address)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return ((((((((((((((((((527 + this.url.hashCode()) * 31) + this.dns.hashCode()) * 31) + this.proxyAuthenticator.hashCode()) * 31) + this.protocols.hashCode()) * 31) + this.connectionSpecs.hashCode()) * 31) + this.proxySelector.hashCode()) * 31) + Objects.hashCode(this.proxy)) * 31) + Objects.hashCode(this.sslSocketFactory)) * 31) + Objects.hashCode(this.hostnameVerifier)) * 31) + Objects.hashCode(this.certificatePinner);
|
|
}
|
|
|
|
public final boolean equalsNonHost$okhttp(Address that) {
|
|
Intrinsics.checkNotNullParameter(that, "that");
|
|
return Intrinsics.areEqual(this.dns, that.dns) && Intrinsics.areEqual(this.proxyAuthenticator, that.proxyAuthenticator) && Intrinsics.areEqual(this.protocols, that.protocols) && Intrinsics.areEqual(this.connectionSpecs, that.connectionSpecs) && Intrinsics.areEqual(this.proxySelector, that.proxySelector) && Intrinsics.areEqual(this.proxy, that.proxy) && Intrinsics.areEqual(this.sslSocketFactory, that.sslSocketFactory) && Intrinsics.areEqual(this.hostnameVerifier, that.hostnameVerifier) && Intrinsics.areEqual(this.certificatePinner, that.certificatePinner) && this.url.port() == that.url.port();
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb;
|
|
Object obj;
|
|
StringBuilder append = new StringBuilder("Address{").append(this.url.host()).append(':').append(this.url.port()).append(", ");
|
|
if (this.proxy != null) {
|
|
sb = new StringBuilder("proxy=");
|
|
obj = this.proxy;
|
|
} else {
|
|
sb = new StringBuilder("proxySelector=");
|
|
obj = this.proxySelector;
|
|
}
|
|
return append.append(sb.append(obj).toString()).append("}").toString();
|
|
}
|
|
}
|