MD5 校验值:d555a6389a0a865314e2706996812829
Address.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package hkhttp3; import havax.net.SocketFactory; import havax.net.ssl.HostnameVerifier; import havax.net.ssl.SSLSocketFactory; import hkhttp3.HttpUrl; import hkhttp3.internal.Util; import java.net.Proxy; import java.net.ProxySelector; import java.util.List; import java.util.Objects; import kotlin.Deprecated; import kotlin.DeprecationLevel; import kotlin.Metadata; import kotlin.ReplaceWith; import kotlin.jvm.internal.Intrinsics; @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 = {"Lhkhttp3/Address;", "", "uriHost", "", "uriPort", "", "dns", "Lhkhttp3/Dns;", "socketFactory", "Lhavax/net/SocketFactory;", "sslSocketFactory", "Lhavax/net/ssl/SSLSocketFactory;", "hostnameVerifier", "Lhavax/net/ssl/HostnameVerifier;", "certificatePinner", "Lhkhttp3/CertificatePinner;", "proxyAuthenticator", "Lhkhttp3/Authenticator;", "proxy", "Ljava/net/Proxy;", "protocols", "", "Lhkhttp3/Protocol;", "connectionSpecs", "Lhkhttp3/ConnectionSpec;", "proxySelector", "Ljava/net/ProxySelector;", "(Ljava/lang/String;ILhkhttp3/Dns;Lhavax/net/SocketFactory;Lhavax/net/ssl/SSLSocketFactory;Lhavax/net/ssl/HostnameVerifier;Lhkhttp3/CertificatePinner;Lhkhttp3/Authenticator;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V", "()Lhkhttp3/CertificatePinner;", "()Ljava/util/List;", "()Lhkhttp3/Dns;", "()Lhavax/net/ssl/HostnameVerifier;", "()Ljava/net/Proxy;", "()Lhkhttp3/Authenticator;", "()Ljava/net/ProxySelector;", "()Lhavax/net/SocketFactory;", "()Lhavax/net/ssl/SSLSocketFactory;", "url", "Lhkhttp3/HttpUrl;", "()Lhkhttp3/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}) 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; public Address(String str, int i, Dns dns, SocketFactory socketFactory, SSLSocketFactory sSLSocketFactory, HostnameVerifier hostnameVerifier, CertificatePinner certificatePinner, Authenticator authenticator, Proxy proxy, List<? extends Protocol> list, List<ConnectionSpec> list2, ProxySelector proxySelector) { Intrinsics.checkNotNullParameter(str, "uriHost"); Intrinsics.checkNotNullParameter(dns, "dns"); Intrinsics.checkNotNullParameter(socketFactory, "socketFactory"); Intrinsics.checkNotNullParameter(authenticator, "proxyAuthenticator"); Intrinsics.checkNotNullParameter(list, "protocols"); Intrinsics.checkNotNullParameter(list2, "connectionSpecs"); Intrinsics.checkNotNullParameter(proxySelector, "proxySelector"); this.dns = dns; this.socketFactory = socketFactory; this.sslSocketFactory = sSLSocketFactory; this.hostnameVerifier = hostnameVerifier; this.certificatePinner = certificatePinner; this.proxyAuthenticator = authenticator; this.proxy = proxy; this.proxySelector = proxySelector; this.url = new HttpUrl.Builder().scheme(sSLSocketFactory != null ? "https" : "http").host(str).port(i).build(); this.protocols = Util.toImmutableList(list); this.connectionSpecs = Util.toImmutableList(list2); } public final Dns dns() { return this.dns; } public final SocketFactory socketFactory() { return this.socketFactory; } public final SSLSocketFactory sslSocketFactory() { return this.sslSocketFactory; } public final HostnameVerifier hostnameVerifier() { return this.hostnameVerifier; } public final CertificatePinner certificatePinner() { return this.certificatePinner; } public final Authenticator proxyAuthenticator() { return this.proxyAuthenticator; } public final Proxy proxy() { return this.proxy; } public final ProxySelector proxySelector() { return this.proxySelector; } public final HttpUrl url() { return this.url; } public final List<Protocol> protocols() { return this.protocols; } public final List<ConnectionSpec> connectionSpecs() { return this.connectionSpecs; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "url", imports = {})) public final HttpUrl getUrl() { return this.url; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "dns", imports = {})) public final Dns getDns() { return this.dns; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "socketFactory", imports = {})) public final SocketFactory getSocketFactory() { return this.socketFactory; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxyAuthenticator", imports = {})) public final Authenticator getProxyAuthenticator() { return this.proxyAuthenticator; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "protocols", imports = {})) public final List<Protocol> m1155deprecated_protocols() { return this.protocols; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "connectionSpecs", imports = {})) public final List<ConnectionSpec> m1152deprecated_connectionSpecs() { return this.connectionSpecs; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxySelector", imports = {})) public final ProxySelector getProxySelector() { return this.proxySelector; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "proxy", imports = {})) public final Proxy getProxy() { return this.proxy; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "sslSocketFactory", imports = {})) public final SSLSocketFactory getSslSocketFactory() { return this.sslSocketFactory; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "hostnameVerifier", imports = {})) public final HostnameVerifier getHostnameVerifier() { return this.hostnameVerifier; } @Deprecated(level = DeprecationLevel.ERROR, message = "moved to val", replaceWith = @ReplaceWith(expression = "certificatePinner", imports = {})) public final CertificatePinner getCertificatePinner() { return this.certificatePinner; } 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 sb2 = new StringBuilder(); sb2.append("Address{"); sb2.append(this.url.host()); sb2.append(':'); sb2.append(this.url.port()); sb2.append(", "); if (this.proxy != null) { sb = new StringBuilder(); sb.append("proxy="); obj = this.proxy; } else { sb = new StringBuilder(); sb.append("proxySelector="); obj = this.proxySelector; } sb.append(obj); sb2.append(sb.toString()); sb2.append("}"); return sb2.toString(); } }