123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664 |
- .class public final Lokhttp3/Address;
- .super Ljava/lang/Object;
- .source ""
- # 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
- .locals 2
- .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 v0, Lokhttp3/HttpUrl$Builder;
- invoke-direct {v0}, Lokhttp3/HttpUrl$Builder;-><init>()V
- if-eqz p5, :cond_0
- const-string v1, "https"
- goto :goto_0
- :cond_0
- const-string v1, "http"
- :goto_0
- invoke-virtual {v0, v1}, 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 p1
- invoke-virtual {p1, p2}, Lokhttp3/HttpUrl$Builder;->port(I)Lokhttp3/HttpUrl$Builder;
- move-result-object p1
- invoke-virtual {p1}, Lokhttp3/HttpUrl$Builder;->build()Lokhttp3/HttpUrl;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
- if-eqz p3, :cond_6
- iput-object p3, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
- if-eqz p4, :cond_5
- iput-object p4, p0, Lokhttp3/Address;->socketFactory:Ljavax/net/SocketFactory;
- if-eqz p8, :cond_4
- iput-object p8, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
- if-eqz p10, :cond_3
- invoke-static {p10}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
- if-eqz p11, :cond_2
- invoke-static {p11}, Lokhttp3/internal/Util;->immutableList(Ljava/util/List;)Ljava/util/List;
- move-result-object p1
- iput-object p1, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
- if-eqz p12, :cond_1
- 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
- :cond_1
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "proxySelector == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_2
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "connectionSpecs == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_3
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "protocols == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_4
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "proxyAuthenticator == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_5
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "socketFactory == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_6
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "dns == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- # virtual methods
- .method public certificatePinner()Lokhttp3/CertificatePinner;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
- return-object v0
- .end method
- .method public connectionSpecs()Ljava/util/List;
- .locals 1
- .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;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
- return-object v0
- .end method
- .method public equals(Ljava/lang/Object;)Z
- .locals 2
- instance-of v0, p1, Lokhttp3/Address;
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
- check-cast p1, Lokhttp3/Address;
- iget-object v1, p1, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
- invoke-virtual {v0, v1}, Lokhttp3/HttpUrl;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- invoke-virtual {p0, p1}, Lokhttp3/Address;->equalsNonHost(Lokhttp3/Address;)Z
- move-result p1
- if-eqz p1, :cond_0
- const/4 p1, 0x1
- goto :goto_0
- :cond_0
- const/4 p1, 0x0
- :goto_0
- return p1
- .end method
- .method equalsNonHost(Lokhttp3/Address;)Z
- .locals 2
- iget-object v0, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
- iget-object v1, p1, Lokhttp3/Address;->dns:Lokhttp3/Dns;
- invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
- iget-object v1, p1, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
- invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
- iget-object v1, p1, Lokhttp3/Address;->protocols:Ljava/util/List;
- invoke-interface {v0, v1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
- iget-object v1, p1, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
- invoke-interface {v0, v1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
- iget-object v1, p1, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
- invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
- iget-object v1, p1, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
- invoke-static {v0, v1}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- iget-object v1, p1, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- invoke-static {v0, v1}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- iget-object v1, p1, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- invoke-static {v0, v1}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
- iget-object v1, p1, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
- invoke-static {v0, v1}, Lokhttp3/internal/Util;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- invoke-virtual {p0}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
- move-result-object v0
- invoke-virtual {v0}, Lokhttp3/HttpUrl;->port()I
- move-result v0
- invoke-virtual {p1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
- move-result-object p1
- invoke-virtual {p1}, Lokhttp3/HttpUrl;->port()I
- move-result p1
- if-ne v0, p1, :cond_0
- const/4 p1, 0x1
- goto :goto_0
- :cond_0
- const/4 p1, 0x0
- :goto_0
- return p1
- .end method
- .method public hashCode()I
- .locals 3
- iget-object v0, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
- invoke-virtual {v0}, Lokhttp3/HttpUrl;->hashCode()I
- move-result v0
- const/16 v1, 0x20f
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->dns:Lokhttp3/Dns;
- invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
- invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->protocols:Ljava/util/List;
- invoke-interface {v0}, Ljava/util/List;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->connectionSpecs:Ljava/util/List;
- invoke-interface {v0}, Ljava/util/List;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
- invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
- const/4 v2, 0x0
- if-eqz v0, :cond_0
- invoke-virtual {v0}, Ljava/net/Proxy;->hashCode()I
- move-result v0
- goto :goto_0
- :cond_0
- const/4 v0, 0x0
- :goto_0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- if-eqz v0, :cond_1
- invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
- move-result v0
- goto :goto_1
- :cond_1
- const/4 v0, 0x0
- :goto_1
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- if-eqz v0, :cond_2
- invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
- move-result v0
- goto :goto_2
- :cond_2
- const/4 v0, 0x0
- :goto_2
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Address;->certificatePinner:Lokhttp3/CertificatePinner;
- if-eqz v0, :cond_3
- invoke-virtual {v0}, Lokhttp3/CertificatePinner;->hashCode()I
- move-result v2
- :cond_3
- add-int/2addr v1, v2
- return v1
- .end method
- .method public hostnameVerifier()Ljavax/net/ssl/HostnameVerifier;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
- return-object v0
- .end method
- .method public protocols()Ljava/util/List;
- .locals 1
- .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;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
- return-object v0
- .end method
- .method public proxyAuthenticator()Lokhttp3/Authenticator;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->proxyAuthenticator:Lokhttp3/Authenticator;
- return-object v0
- .end method
- .method public proxySelector()Ljava/net/ProxySelector;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
- return-object v0
- .end method
- .method public socketFactory()Ljavax/net/SocketFactory;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->socketFactory:Ljavax/net/SocketFactory;
- return-object v0
- .end method
- .method public sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- return-object v0
- .end method
- .method public toString()Ljava/lang/String;
- .locals 2
- new-instance v0, Ljava/lang/StringBuilder;
- invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
- const-string v1, "Address{"
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- 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;
- const-string v1, ":"
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- 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;
- iget-object v1, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
- if-eqz v1, :cond_0
- const-string v1, ", proxy="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Address;->proxy:Ljava/net/Proxy;
- goto :goto_0
- :cond_0
- const-string v1, ", proxySelector="
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Address;->proxySelector:Ljava/net/ProxySelector;
- :goto_0
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
- const-string 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
- .end method
- .method public url()Lokhttp3/HttpUrl;
- .locals 1
- iget-object v0, p0, Lokhttp3/Address;->url:Lokhttp3/HttpUrl;
- return-object v0
- .end method
|