2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lokhttp3/w$a;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Request.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lokhttp3/w;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x9
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-10-04 20:11:59 +00:00
|
|
|
.field btc:Lokhttp3/s;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
.field bxw:Lokhttp3/RequestBody;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field bye:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/Class<",
|
|
|
|
"*>;",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
.field byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
.field method:Ljava/lang/String;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->bye:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v0, "GET"
|
|
|
|
|
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->method:Ljava/lang/String;
|
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/Headers$a;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Lokhttp3/Headers$a;-><init>()V
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method constructor <init>(Lokhttp3/w;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->bye:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p1, Lokhttp3/w;->btc:Lokhttp3/s;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->btc:Lokhttp3/s;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p1, Lokhttp3/w;->method:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->method:Ljava/lang/String;
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p1, Lokhttp3/w;->bxw:Lokhttp3/RequestBody;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->bxw:Lokhttp3/RequestBody;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p1, Lokhttp3/w;->bye:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Ljava/util/LinkedHashMap;
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v1, p1, Lokhttp3/w;->bye:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/LinkedHashMap;-><init>(Ljava/util/Map;)V
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object v0, p0, Lokhttp3/w$a;->bye:Ljava/util/Map;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object p1, p1, Lokhttp3/w;->bxv:Lokhttp3/Headers;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-04 22:25:14 +00:00
|
|
|
invoke-virtual {p1}, Lokhttp3/Headers;->GH()Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/w$a;->byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-10-04 22:25:14 +00:00
|
|
|
.method public final Hi()Lokhttp3/w;
|
2019-08-17 08:22:04 +00:00
|
|
|
.locals 2
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/w$a;->btc:Lokhttp3/s;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/w;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lokhttp3/w;-><init>(Lokhttp3/w$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 final a(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/w$a;
|
|
|
|
.locals 2
|
|
|
|
.param p2 # Lokhttp3/RequestBody;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
if-eqz p1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
if-eqz v0, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v0, "method "
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-static {p1}, Lokhttp3/internal/c/f;->ex(Ljava/lang/String;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
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
|
2019-08-17 08:22:04 +00:00
|
|
|
if-nez p2, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-static {p1}, Lokhttp3/internal/c/f;->ew(Ljava/lang/String;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
if-nez v1, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
:cond_3
|
|
|
|
:goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/w$a;->method:Ljava/lang/String;
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object p2, p0, Lokhttp3/w$a;->bxw:Lokhttp3/RequestBody;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
:cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
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
|
|
|
|
|
2019-08-17 08:22:04 +00:00
|
|
|
:cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
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 final ap(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/w$a;->byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$a;->am(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/w$a;->byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Lokhttp3/Headers$a;->ak(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lokhttp3/Headers;)Lokhttp3/w$a;
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-04 22:25:14 +00:00
|
|
|
invoke-virtual {p1}, Lokhttp3/Headers;->GH()Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/w$a;->byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lokhttp3/s;)Lokhttp3/w$a;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iput-object p1, p0, Lokhttp3/w$a;->btc:Lokhttp3/s;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
.method public final ek(Ljava/lang/String;)Lokhttp3/w$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 6
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
const-string v1, "http:"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
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_0
|
|
|
|
|
|
|
|
: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;
|
|
|
|
|
|
|
|
const-string v1, "https:"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-static {p1}, Lokhttp3/s;->ef(Ljava/lang/String;)Lokhttp3/s;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/w$a;->b(Lokhttp3/s;)Lokhttp3/w$a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
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
|
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
.method public final el(Ljava/lang/String;)Lokhttp3/w$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-10-04 20:11:59 +00:00
|
|
|
iget-object v0, p0, Lokhttp3/w$a;->byg:Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-01 14:15:45 +00:00
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/Headers$a;->dZ(Ljava/lang/String;)Lokhttp3/Headers$a;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|