-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bfff9f
commit e6a4718
Showing
53 changed files
with
17,539 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,398 @@ | ||
.class public Lc/D$a; | ||
.super Ljava/lang/Object; | ||
.source "" | ||
|
||
|
||
# annotations | ||
.annotation system Ldalvik/annotation/EnclosingClass; | ||
value = Lc/D; | ||
.end annotation | ||
|
||
.annotation system Ldalvik/annotation/InnerClass; | ||
accessFlags = 0x9 | ||
name = "a" | ||
.end annotation | ||
|
||
|
||
# instance fields | ||
.field a:Lc/w; | ||
|
||
.field b:Ljava/lang/String; | ||
|
||
.field c:Lc/v$a; | ||
|
||
.field d:Lc/F; | ||
|
||
.field e:Ljava/lang/Object; | ||
|
||
|
||
# direct methods | ||
.method public constructor <init>()V | ||
.locals 1 | ||
|
||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
|
||
const-string v0, "GET" | ||
|
||
iput-object v0, p0, Lc/D$a;->b:Ljava/lang/String; | ||
|
||
new-instance v0, Lc/v$a; | ||
|
||
invoke-direct {v0}, Lc/v$a;-><init>()V | ||
|
||
iput-object v0, p0, Lc/D$a;->c:Lc/v$a; | ||
|
||
return-void | ||
.end method | ||
|
||
.method constructor <init>(Lc/D;)V | ||
.locals 1 | ||
|
||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
|
||
iget-object v0, p1, Lc/D;->a:Lc/w; | ||
|
||
iput-object v0, p0, Lc/D$a;->a:Lc/w; | ||
|
||
iget-object v0, p1, Lc/D;->b:Ljava/lang/String; | ||
|
||
iput-object v0, p0, Lc/D$a;->b:Ljava/lang/String; | ||
|
||
iget-object v0, p1, Lc/D;->d:Lc/F; | ||
|
||
iput-object v0, p0, Lc/D$a;->d:Lc/F; | ||
|
||
iget-object v0, p1, Lc/D;->e:Ljava/lang/Object; | ||
|
||
iput-object v0, p0, Lc/D$a;->e:Ljava/lang/Object; | ||
|
||
iget-object p1, p1, Lc/D;->c:Lc/v; | ||
|
||
invoke-virtual {p1}, Lc/v;->a()Lc/v$a; | ||
|
||
move-result-object p1 | ||
|
||
iput-object p1, p0, Lc/D$a;->c:Lc/v$a; | ||
|
||
return-void | ||
.end method | ||
|
||
|
||
# virtual methods | ||
.method public a(Lc/v;)Lc/D$a; | ||
.locals 0 | ||
|
||
invoke-virtual {p1}, Lc/v;->a()Lc/v$a; | ||
|
||
move-result-object p1 | ||
|
||
iput-object p1, p0, Lc/D$a;->c:Lc/v$a; | ||
|
||
return-object p0 | ||
.end method | ||
|
||
.method public a(Lc/w;)Lc/D$a; | ||
.locals 1 | ||
|
||
if-eqz p1, :cond_0 | ||
|
||
iput-object p1, p0, Lc/D$a;->a:Lc/w; | ||
|
||
return-object p0 | ||
|
||
:cond_0 | ||
new-instance p1, Ljava/lang/NullPointerException; | ||
|
||
const-string v0, "url == null" | ||
|
||
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V | ||
|
||
throw p1 | ||
.end method | ||
|
||
.method public a(Ljava/lang/String;)Lc/D$a; | ||
.locals 1 | ||
|
||
iget-object v0, p0, Lc/D$a;->c:Lc/v$a; | ||
|
||
invoke-virtual {v0, p1}, Lc/v$a;->b(Ljava/lang/String;)Lc/v$a; | ||
|
||
return-object p0 | ||
.end method | ||
|
||
.method public a(Ljava/lang/String;Lc/F;)Lc/D$a; | ||
.locals 2 | ||
|
||
if-eqz p1, :cond_5 | ||
|
||
invoke-virtual {p1}, Ljava/lang/String;->length()I | ||
|
||
move-result v0 | ||
|
||
if-eqz v0, :cond_4 | ||
|
||
const-string v0, "method " | ||
|
||
if-eqz p2, :cond_1 | ||
|
||
invoke-static {p1}, Lc/a/c/g;->b(Ljava/lang/String;)Z | ||
|
||
move-result v1 | ||
|
||
if-eqz v1, :cond_0 | ||
|
||
goto :goto_0 | ||
|
||
:cond_0 | ||
new-instance p2, Ljava/lang/IllegalArgumentException; | ||
|
||
new-instance v1, Ljava/lang/StringBuilder; | ||
|
||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V | ||
|
||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
const-string p1, " must not have a request body." | ||
|
||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
|
||
move-result-object p1 | ||
|
||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | ||
|
||
throw p2 | ||
|
||
:cond_1 | ||
:goto_0 | ||
if-nez p2, :cond_3 | ||
|
||
invoke-static {p1}, Lc/a/c/g;->e(Ljava/lang/String;)Z | ||
|
||
move-result v1 | ||
|
||
if-nez v1, :cond_2 | ||
|
||
goto :goto_1 | ||
|
||
:cond_2 | ||
new-instance p2, Ljava/lang/IllegalArgumentException; | ||
|
||
new-instance v1, Ljava/lang/StringBuilder; | ||
|
||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V | ||
|
||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
const-string p1, " must have a request body." | ||
|
||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
|
||
move-result-object p1 | ||
|
||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | ||
|
||
throw p2 | ||
|
||
:cond_3 | ||
:goto_1 | ||
iput-object p1, p0, Lc/D$a;->b:Ljava/lang/String; | ||
|
||
iput-object p2, p0, Lc/D$a;->d:Lc/F; | ||
|
||
return-object p0 | ||
|
||
:cond_4 | ||
new-instance p1, Ljava/lang/IllegalArgumentException; | ||
|
||
const-string p2, "method.length() == 0" | ||
|
||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | ||
|
||
throw p1 | ||
|
||
:cond_5 | ||
new-instance p1, Ljava/lang/NullPointerException; | ||
|
||
const-string p2, "method == null" | ||
|
||
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V | ||
|
||
throw p1 | ||
.end method | ||
|
||
.method public a(Ljava/lang/String;Ljava/lang/String;)Lc/D$a; | ||
.locals 1 | ||
|
||
iget-object v0, p0, Lc/D$a;->c:Lc/v$a; | ||
|
||
invoke-virtual {v0, p1, p2}, Lc/v$a;->a(Ljava/lang/String;Ljava/lang/String;)Lc/v$a; | ||
|
||
return-object p0 | ||
.end method | ||
|
||
.method public a()Lc/D; | ||
.locals 2 | ||
|
||
iget-object v0, p0, Lc/D$a;->a:Lc/w; | ||
|
||
if-eqz v0, :cond_0 | ||
|
||
new-instance v0, Lc/D; | ||
|
||
invoke-direct {v0, p0}, Lc/D;-><init>(Lc/D$a;)V | ||
|
||
return-object v0 | ||
|
||
:cond_0 | ||
new-instance v0, Ljava/lang/IllegalStateException; | ||
|
||
const-string v1, "url == null" | ||
|
||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V | ||
|
||
throw v0 | ||
.end method | ||
|
||
.method public b(Ljava/lang/String;)Lc/D$a; | ||
.locals 6 | ||
|
||
if-eqz p1, :cond_3 | ||
|
||
const/4 v1, 0x1 | ||
|
||
const/4 v2, 0x0 | ||
|
||
const/4 v4, 0x0 | ||
|
||
const/4 v5, 0x3 | ||
|
||
const-string v3, "ws:" | ||
|
||
move-object v0, p1 | ||
|
||
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z | ||
|
||
move-result v0 | ||
|
||
if-eqz v0, :cond_0 | ||
|
||
new-instance v0, Ljava/lang/StringBuilder; | ||
|
||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V | ||
|
||
const-string v1, "http:" | ||
|
||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
const/4 v1, 0x3 | ||
|
||
:goto_0 | ||
invoke-virtual {p1, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String; | ||
|
||
move-result-object p1 | ||
|
||
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
|
||
move-result-object p1 | ||
|
||
goto :goto_1 | ||
|
||
:cond_0 | ||
const/4 v1, 0x1 | ||
|
||
const/4 v2, 0x0 | ||
|
||
const/4 v4, 0x0 | ||
|
||
const/4 v5, 0x4 | ||
|
||
const-string v3, "wss:" | ||
|
||
move-object v0, p1 | ||
|
||
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z | ||
|
||
move-result v0 | ||
|
||
if-eqz v0, :cond_1 | ||
|
||
new-instance v0, Ljava/lang/StringBuilder; | ||
|
||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V | ||
|
||
const-string v1, "https:" | ||
|
||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
const/4 v1, 0x4 | ||
|
||
goto :goto_0 | ||
|
||
:cond_1 | ||
:goto_1 | ||
invoke-static {p1}, Lc/w;->c(Ljava/lang/String;)Lc/w; | ||
|
||
move-result-object v0 | ||
|
||
if-eqz v0, :cond_2 | ||
|
||
invoke-virtual {p0, v0}, Lc/D$a;->a(Lc/w;)Lc/D$a; | ||
|
||
return-object p0 | ||
|
||
:cond_2 | ||
new-instance v0, Ljava/lang/IllegalArgumentException; | ||
|
||
new-instance v1, Ljava/lang/StringBuilder; | ||
|
||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V | ||
|
||
const-string v2, "unexpected url: " | ||
|
||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
|
||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
|
||
move-result-object p1 | ||
|
||
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V | ||
|
||
throw v0 | ||
|
||
:cond_3 | ||
new-instance p1, Ljava/lang/NullPointerException; | ||
|
||
const-string v0, "url == null" | ||
|
||
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V | ||
|
||
goto :goto_3 | ||
|
||
:goto_2 | ||
throw p1 | ||
|
||
:goto_3 | ||
goto :goto_2 | ||
.end method | ||
|
||
.method public b(Ljava/lang/String;Ljava/lang/String;)Lc/D$a; | ||
.locals 1 | ||
|
||
iget-object v0, p0, Lc/D$a;->c:Lc/v$a; | ||
|
||
invoke-virtual {v0, p1, p2}, Lc/v$a;->c(Ljava/lang/String;Ljava/lang/String;)Lc/v$a; | ||
|
||
return-object p0 | ||
.end method |
Oops, something went wrong.