123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- .class public final Lokhttp3/Challenge;
- .super Ljava/lang/Object;
- .source ""
- # instance fields
- .field private final charset:Ljava/nio/charset/Charset;
- .field private final realm:Ljava/lang/String;
- .field private final scheme:Ljava/lang/String;
- # direct methods
- .method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
- .locals 1
- sget-object v0, Lokhttp3/internal/Util;->ISO_8859_1:Ljava/nio/charset/Charset;
- invoke-direct {p0, p1, p2, v0}, Lokhttp3/Challenge;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;)V
- return-void
- .end method
- .method private constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;)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/Challenge;->scheme:Ljava/lang/String;
- iput-object p2, p0, Lokhttp3/Challenge;->realm:Ljava/lang/String;
- iput-object p3, p0, Lokhttp3/Challenge;->charset:Ljava/nio/charset/Charset;
- return-void
- :cond_0
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "charset == 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, "realm == 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, "scheme == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- throw p1
- .end method
- # virtual methods
- .method public charset()Ljava/nio/charset/Charset;
- .locals 1
- iget-object v0, p0, Lokhttp3/Challenge;->charset:Ljava/nio/charset/Charset;
- return-object v0
- .end method
- .method public equals(Ljava/lang/Object;)Z
- .locals 2
- instance-of v0, p1, Lokhttp3/Challenge;
- if-eqz v0, :cond_0
- check-cast p1, Lokhttp3/Challenge;
- iget-object v0, p1, Lokhttp3/Challenge;->scheme:Ljava/lang/String;
- iget-object v1, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object v0, p1, Lokhttp3/Challenge;->realm:Ljava/lang/String;
- iget-object v1, p0, Lokhttp3/Challenge;->realm:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
- move-result v0
- if-eqz v0, :cond_0
- iget-object p1, p1, Lokhttp3/Challenge;->charset:Ljava/nio/charset/Charset;
- iget-object v0, p0, Lokhttp3/Challenge;->charset:Ljava/nio/charset/Charset;
- invoke-virtual {p1, v0}, Ljava/nio/charset/Charset;->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/Challenge;->realm:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- const/16 v1, 0x383
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String;
- invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- mul-int/lit8 v1, v1, 0x1f
- iget-object v0, p0, Lokhttp3/Challenge;->charset:Ljava/nio/charset/Charset;
- invoke-virtual {v0}, Ljava/nio/charset/Charset;->hashCode()I
- move-result v0
- add-int/2addr v1, v0
- return v1
- .end method
- .method public realm()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Challenge;->realm:Ljava/lang/String;
- return-object v0
- .end method
- .method public scheme()Ljava/lang/String;
- .locals 1
- iget-object v0, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String;
- 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
- iget-object v1, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- const-string v1, " realm=\""
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Challenge;->realm:Ljava/lang/String;
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- const-string v1, "\" charset=\""
- invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- iget-object v1, p0, Lokhttp3/Challenge;->charset:Ljava/nio/charset/Charset;
- 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 withCharset(Ljava/nio/charset/Charset;)Lokhttp3/Challenge;
- .locals 3
- new-instance v0, Lokhttp3/Challenge;
- iget-object v1, p0, Lokhttp3/Challenge;->scheme:Ljava/lang/String;
- iget-object v2, p0, Lokhttp3/Challenge;->realm:Ljava/lang/String;
- invoke-direct {v0, v1, v2, p1}, Lokhttp3/Challenge;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/nio/charset/Charset;)V
- return-object v0
- .end method
|