Address.smali
.class public final Lokhttp3/Address;
.super Ljava/lang/Object;
# instance fields
.field final certificatePinner:Lokhttp3/CertificatePinner;
.field final connectionSpecs:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lokhttp3/ConnectionSpec;",
">;"
}
.end annotation
.end field
.field final dns:Lokhttp3/Dns;
.field final hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
.field final protocols:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lokhttp3/Protocol;",
">;"
}
.end annotation
.end field
.field final proxy:Ljava/net/Proxy;
.field final proxyAuthenticator:Lokhttp3/Authenticator;
.field final proxySelector:Ljava/net/ProxySelector;
.field final socketFactory:Ljavax/net/SocketFactory;
.field final sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
.field final url:Lokhttp3/HttpUrl;
# direct methods
.method public constructor <init>(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
.registers 15
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"I",
"Lokhttp3/Dns;",
"Ljavax/net/SocketFactory;",
"Ljavax/net/ssl/SSLSocketFactory;",
"Ljavax/net/ssl/HostnameVerifier;",
"Lokhttp3/CertificatePinner;",
"Lokhttp3/Authenticator;",
"Ljava/net/Proxy;",
"Ljava/util/List",
"<",
"Lokhttp3/Protocol;",
">;",
"Ljava/util/List",
"<",
"Lokhttp3/ConnectionSpec;",
">;",
"Ljava/net/ProxySelector;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v1, Lokhttp3/HttpUrl$Builder;
invoke-direct {v1}, Lokhttp3/HttpUrl$Builder;-><init>()V
if-eqz p5, :cond_2a
const-string/jumbo v0, "https"
:goto_d
invoke-virtual {v1, v0}, Lokhttp3/HttpUrl$Builder;->scheme(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
move-result-object v0
invoke-virtual {v0, p1}, Lokhttp3/HttpUrl$Builder;->host(Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
move-result-object v0
invoke-virtual {v0, p2}, Lokhttp3/HttpUrl$Builder;->port(I)Lokhttp3/HttpUrl$Builder;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl$Builder;->build()Lokhttp3/HttpUrl;
move-result-object v0
iput-object v0, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
if-nez p3, :cond_2e
new-instance v0, Ljava/lang/NullPointerException;
const-string/jumbo v1, "dns == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2a
const-string/jumbo v0, "http"
goto :goto_d
:cond_2e
iput-object p3, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
if-nez p4, :cond_3b
new-instance v0, Ljava/lang/NullPointerException;
const-string/jumbo v1, "socketFactory == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3b
iput-object p4, p0, Lokhttp3/Address;->socketFactory:Ljavax/net/SocketFactory;
if-nez p8, :cond_48
new-instance v0, Ljava/lang/NullPointerException;
const-string/jumbo v1, "proxyAuthenticator == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_48
iput-object p8, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
if-nez p10, :cond_55
new-instance v0, Ljava/lang/NullPointerException;
const-string/jumbo v1, "protocols == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_55
invoke-static {p10}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
if-nez p11, :cond_66
new-instance v0, Ljava/lang/NullPointerException;
const-string/jumbo v1, "connectionSpecs == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_66
invoke-static {p11}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
if-nez p12, :cond_77
new-instance v0, Ljava/lang/NullPointerException;
const-string/jumbo v1, "proxySelector == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_77
iput-object p12, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
iput-object p9, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
iput-object p5, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
iput-object p6, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
iput-object p7, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
return-void
.end method
# virtual methods
.method public certificatePinner()Lokhttp3/CertificatePinner;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
return-object v0
.end method
.method public connectionSpecs()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Lokhttp3/ConnectionSpec;",
">;"
}
.end annotation
iget-object v0, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
return-object v0
.end method
.method public dns()Lokhttp3/Dns;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.registers 5
const/4 v0, 0x0
instance-of v1, p1, Lokhttp3/Address;
if-eqz v1, :cond_6c
check-cast p1, Lokhttp3/Address;
iget-object v1, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
iget-object v2, p1, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
invoke-virtual {v1, v2}, Lokhttp3/HttpUrl;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
iget-object v2, p1, Lokhttp3/Address;->dns:Lokhttp3/Dns;
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
iget-object v2, p1, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
iget-object v2, p1, Lokhttp3/Address;->protocols:Ljava/util/List;
invoke-interface {v1, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
iget-object v2, p1, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
invoke-interface {v1, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
iget-object v2, p1, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
iget-object v2, p1, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
invoke-static {v1, v2}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
iget-object v2, p1, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
invoke-static {v1, v2}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
iget-object v2, p1, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
invoke-static {v1, v2}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
iget-object v1, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
iget-object v2, p1, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
invoke-static {v1, v2}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_6c
const/4 v0, 0x1
:cond_6c
return v0
.end method
.method public hashCode()I
.registers 4
const/4 v1, 0x0
iget-object v0, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
invoke-virtual {v0}, Lokhttp3/HttpUrl;->hashCode()I
move-result v0
add-int/lit16 v0, v0, 0x20f
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v2
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v2
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->hashCode()I
move-result v2
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->hashCode()I
move-result v2
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v2
add-int/2addr v0, v2
mul-int/lit8 v2, v0, 0x1f
iget-object v0, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
if-eqz v0, :cond_6b
iget-object v0, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
invoke-virtual {v0}, Ljava/net/Proxy;->hashCode()I
move-result v0
:goto_42
add-int/2addr v0, v2
mul-int/lit8 v2, v0, 0x1f
iget-object v0, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-eqz v0, :cond_6d
iget-object v0, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
:goto_4f
add-int/2addr v0, v2
mul-int/lit8 v2, v0, 0x1f
iget-object v0, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
if-eqz v0, :cond_6f
iget-object v0, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
:goto_5c
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
if-eqz v2, :cond_69
iget-object v1, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
invoke-virtual {v1}, Lokhttp3/CertificatePinner;->hashCode()I
move-result v1
:cond_69
add-int/2addr v0, v1
return v0
:cond_6b
move v0, v1
goto :goto_42
:cond_6d
move v0, v1
goto :goto_4f
:cond_6f
move v0, v1
goto :goto_5c
.end method
.method public hostnameVerifier()Ljavax/net/ssl/HostnameVerifier;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
return-object v0
.end method
.method public protocols()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Lokhttp3/Protocol;",
">;"
}
.end annotation
iget-object v0, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
return-object v0
.end method
.method public proxy()Ljava/net/Proxy;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
return-object v0
.end method
.method public proxyAuthenticator()Lokhttp3/Authenticator;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
return-object v0
.end method
.method public proxySelector()Ljava/net/ProxySelector;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
return-object v0
.end method
.method public socketFactory()Ljavax/net/SocketFactory;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->socketFactory:Ljavax/net/SocketFactory;
return-object v0
.end method
.method public sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.registers 4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v1, "Address{"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
invoke-virtual {v1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string/jumbo v1, ":"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
invoke-virtual {v1}, Lokhttp3/HttpUrl;->port()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
if-eqz v1, :cond_42
const-string/jumbo v1, ", proxy="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
:goto_37
const-string/jumbo v1, "}"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_42
const-string/jumbo v1, ", proxySelector="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
goto :goto_37
.end method
.method public url()Lokhttp3/HttpUrl;
.registers 2
iget-object v0, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
return-object v0
.end method