123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- .class public final Lokhttp3/Route;
- .super Ljava/lang/Object;
- .source ""
- # instance fields
- .field final address:Lokhttp3/Address;
- .field final inetSocketAddress:Ljava/net/InetSocketAddress;
- .field final proxy:Ljava/net/Proxy;
- # direct methods
- .method public constructor <init>(Lokhttp3/Address;Ljava/net/Proxy;Ljava/net/InetSocketAddress;)V
- .locals 0
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- if-eqz p1, :cond_2
- if-eqz p2, :cond_1
- if-eqz p3, :cond_0
- iput-object p1, p0, Lokhttp3/Route;->address:Lokhttp3/Address;
- iput-object p2, p0, Lokhttp3/Route;->proxy:Ljava/net/Proxy;
- iput-object p3, p0, Lokhttp3/Route;->inetSocketAddress:Ljava/net/InetSocketAddress;
- return-void
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "inetSocketAddress == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- :cond_1
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "proxy == 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, "address == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- # virtual methods
- .method public address()Lokhttp3/Address;
- .locals 1
- iget-object v0, p0, Lokhttp3/Route;->address:Lokhttp3/Address;
- return-object v0
- .end method
- .method public equals(Ljava/lang/Object;)Z
- .locals 2
- instance-of v0, p1, Lokhttp3/Route;
- if-eqz v0, :cond_0
- check-cast p1, Lokhttp3/Route;
- iget-object v0, p1, Lokhttp3/Route;->address:Lokhttp3/Address;
- iget-object v1, p0, Lokhttp3/Route;->address:Lokhttp3/Address;
- invoke-virtual {v0, v1}, Lokhttp3/Address;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p1, Lokhttp3/Route;->proxy:Ljava/net/Proxy;
- iget-object v1, p0, Lokhttp3/Route;->proxy:Ljava/net/Proxy;
- invoke-virtual {v0, v1}, Ljava/net/Proxy;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object p1, p1, Lokhttp3/Route;->inetSocketAddress:Ljava/net/InetSocketAddress;
- iget-object v0, p0, Lokhttp3/Route;->inetSocketAddress:Ljava/net/InetSocketAddress;
- invoke-virtual {p1, v0}, Ljava/net/InetSocketAddress;->equals(Ljava/lang/Object;)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 public hashCode()I
- .locals 2
- iget-object v0, p0, Lokhttp3/Route;->address:Lokhttp3/Address;
- invoke-virtual {v0}, Lokhttp3/Address;->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/Route;->proxy:Ljava/net/Proxy;
- invoke-virtual {v0}, Ljava/net/Proxy;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Route;->inetSocketAddress:Ljava/net/InetSocketAddress;
- invoke-virtual {v0}, Ljava/net/InetSocketAddress;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- return v1
- .end method
- .method public proxy()Ljava/net/Proxy;
- .locals 1
- iget-object v0, p0, Lokhttp3/Route;->proxy:Ljava/net/Proxy;
- return-object v0
- .end method
- .method public requiresTunnel()Z
- .locals 2
- iget-object v0, p0, Lokhttp3/Route;->address:Lokhttp3/Address;
- iget-object v0, v0, Lokhttp3/Address;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
- if-eqz v0, :cond_0
- iget-object v0, p0, Lokhttp3/Route;->proxy:Ljava/net/Proxy;
- invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
- move-result-object v0
- sget-object v1, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;
- if-ne v0, v1, :cond_0
- const/4 v0, 0x1
- goto :goto_0
- :cond_0
- const/4 v0, 0x0
- :goto_0
- return v0
- .end method
- .method public socketAddress()Ljava/net/InetSocketAddress;
- .locals 1
- iget-object v0, p0, Lokhttp3/Route;->inetSocketAddress:Ljava/net/InetSocketAddress;
- 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, "Route{"
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Route;->inetSocketAddress:Ljava/net/InetSocketAddress;
- 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
|