1839 lines
36 KiB
Smali
1839 lines
36 KiB
Smali
.class public final Lokhttp3/s;
|
|
.super Ljava/lang/Object;
|
|
.source "HttpUrl.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/s$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final brV:[C
|
|
|
|
|
|
# instance fields
|
|
.field public final brW:Ljava/lang/String;
|
|
|
|
.field public final brX:Ljava/lang/String;
|
|
|
|
.field public final brY:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final brZ:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final fragment:Ljava/lang/String;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final password:Ljava/lang/String;
|
|
|
|
.field public final port:I
|
|
|
|
.field private final url:Ljava/lang/String;
|
|
|
|
.field private final username:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const/16 v0, 0x10
|
|
|
|
new-array v0, v0, [C
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
sput-object v0, Lokhttp3/s;->brV:[C
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 2
|
|
0x30s
|
|
0x31s
|
|
0x32s
|
|
0x33s
|
|
0x34s
|
|
0x35s
|
|
0x36s
|
|
0x37s
|
|
0x38s
|
|
0x39s
|
|
0x41s
|
|
0x42s
|
|
0x43s
|
|
0x44s
|
|
0x45s
|
|
0x46s
|
|
.end array-data
|
|
.end method
|
|
|
|
.method constructor <init>(Lokhttp3/s$a;)V
|
|
.locals 4
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->brW:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bsa:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/s;->h(Ljava/lang/String;Z)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/s;->username:Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bsb:Ljava/lang/String;
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/s;->h(Ljava/lang/String;Z)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/s;->password:Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->brX:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/s;->brX:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/s$a;->Gy()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lokhttp3/s;->port:I
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bsc:Ljava/util/List;
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/s;->b(Ljava/util/List;Z)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/s;->brY:Ljava/util/List;
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bsd:Ljava/util/List;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bsd:Ljava/util/List;
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-static {v0, v3}, Lokhttp3/s;->b(Ljava/util/List;Z)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v0, v2
|
|
|
|
:goto_0
|
|
iput-object v0, p0, Lokhttp3/s;->brZ:Ljava/util/List;
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bse:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p1, Lokhttp3/s$a;->bse:Ljava/lang/String;
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/s;->h(Ljava/lang/String;Z)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_1
|
|
iput-object v2, p0, Lokhttp3/s;->fragment:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/s$a;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p2
|
|
|
|
move-object/from16 v2, p3
|
|
|
|
move-object/from16 v3, p8
|
|
|
|
move/from16 v4, p1
|
|
|
|
:goto_0
|
|
if-ge v4, v1, :cond_15
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->codePointAt(I)I
|
|
|
|
move-result v5
|
|
|
|
const/16 v6, 0x2b
|
|
|
|
const/4 v7, -0x1
|
|
|
|
const/16 v8, 0x80
|
|
|
|
const/16 v9, 0x7f
|
|
|
|
const/16 v10, 0x20
|
|
|
|
const/16 v11, 0x25
|
|
|
|
if-lt v5, v10, :cond_3
|
|
|
|
if-eq v5, v9, :cond_3
|
|
|
|
if-lt v5, v8, :cond_0
|
|
|
|
if-nez p7, :cond_3
|
|
|
|
:cond_0
|
|
invoke-virtual {v2, v5}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v12
|
|
|
|
if-ne v12, v7, :cond_3
|
|
|
|
if-ne v5, v11, :cond_1
|
|
|
|
if-eqz p4, :cond_3
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
invoke-static {v0, v4, v1}, Lokhttp3/s;->d(Ljava/lang/String;II)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_3
|
|
|
|
:cond_1
|
|
if-ne v5, v6, :cond_2
|
|
|
|
if-eqz p6, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-static {v5}, Ljava/lang/Character;->charCount(I)I
|
|
|
|
move-result v5
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
new-instance v5, Lokio/c;
|
|
|
|
invoke-direct {v5}, Lokio/c;-><init>()V
|
|
|
|
move/from16 v12, p1
|
|
|
|
invoke-virtual {v5, v0, v12, v4}, Lokio/c;->o(Ljava/lang/String;II)Lokio/c;
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:goto_2
|
|
if-ge v4, v1, :cond_14
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->codePointAt(I)I
|
|
|
|
move-result v13
|
|
|
|
if-eqz p4, :cond_4
|
|
|
|
const/16 v14, 0x9
|
|
|
|
if-eq v13, v14, :cond_13
|
|
|
|
const/16 v14, 0xa
|
|
|
|
if-eq v13, v14, :cond_13
|
|
|
|
const/16 v14, 0xc
|
|
|
|
if-eq v13, v14, :cond_13
|
|
|
|
const/16 v14, 0xd
|
|
|
|
if-eq v13, v14, :cond_13
|
|
|
|
:cond_4
|
|
if-ne v13, v6, :cond_6
|
|
|
|
if-eqz p6, :cond_6
|
|
|
|
if-eqz p4, :cond_5
|
|
|
|
const-string v14, "+"
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const-string v14, "%2B"
|
|
|
|
:goto_3
|
|
invoke-virtual {v5, v14}, Lokio/c;->eF(Ljava/lang/String;)Lokio/c;
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_6
|
|
if-lt v13, v10, :cond_9
|
|
|
|
if-eq v13, v9, :cond_9
|
|
|
|
if-lt v13, v8, :cond_7
|
|
|
|
if-nez p7, :cond_9
|
|
|
|
:cond_7
|
|
invoke-virtual {v2, v13}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v14
|
|
|
|
if-ne v14, v7, :cond_9
|
|
|
|
if-ne v13, v11, :cond_8
|
|
|
|
if-eqz p4, :cond_9
|
|
|
|
if-eqz p5, :cond_8
|
|
|
|
invoke-static {v0, v4, v1}, Lokhttp3/s;->d(Ljava/lang/String;II)Z
|
|
|
|
move-result v14
|
|
|
|
if-nez v14, :cond_8
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
invoke-virtual {v5, v13}, Lokio/c;->dP(I)Lokio/c;
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_9
|
|
:goto_4
|
|
if-nez v12, :cond_a
|
|
|
|
new-instance v12, Lokio/c;
|
|
|
|
invoke-direct {v12}, Lokio/c;-><init>()V
|
|
|
|
:cond_a
|
|
if-eqz v3, :cond_12
|
|
|
|
sget-object v14, Lokhttp3/internal/c;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {v3, v14}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_b
|
|
|
|
goto/16 :goto_5
|
|
|
|
:cond_b
|
|
invoke-static {v13}, Ljava/lang/Character;->charCount(I)I
|
|
|
|
move-result v14
|
|
|
|
add-int/2addr v14, v4
|
|
|
|
if-eqz v0, :cond_11
|
|
|
|
if-ltz v4, :cond_10
|
|
|
|
if-lt v14, v4, :cond_f
|
|
|
|
invoke-virtual/range {p0 .. p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v15
|
|
|
|
if-gt v14, v15, :cond_e
|
|
|
|
if-eqz v3, :cond_d
|
|
|
|
sget-object v15, Lokio/t;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {v3, v15}, Ljava/nio/charset/Charset;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v15
|
|
|
|
if-eqz v15, :cond_c
|
|
|
|
invoke-virtual {v12, v0, v4, v14}, Lokio/c;->o(Ljava/lang/String;II)Lokio/c;
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
invoke-virtual {v0, v4, v14}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v14
|
|
|
|
invoke-virtual {v14, v3}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v14
|
|
|
|
const/4 v15, 0x0
|
|
|
|
array-length v6, v14
|
|
|
|
invoke-virtual {v12, v14, v15, v6}, Lokio/c;->m([BII)Lokio/c;
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "charset == null"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_e
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "endIndex > string.length: "
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " > "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual/range {p0 .. p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_f
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "endIndex < beginIndex: "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v14}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " < "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_10
|
|
new-instance v0, Ljava/lang/IllegalAccessError;
|
|
|
|
invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "beginIndex < 0: "
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalAccessError;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_11
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "string == null"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_12
|
|
:goto_5
|
|
invoke-virtual {v12, v13}, Lokio/c;->dP(I)Lokio/c;
|
|
|
|
:goto_6
|
|
invoke-virtual {v12}, Lokio/c;->Ih()Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_13
|
|
|
|
invoke-virtual {v12}, Lokio/c;->readByte()B
|
|
|
|
move-result v6
|
|
|
|
and-int/lit16 v6, v6, 0xff
|
|
|
|
invoke-virtual {v5, v11}, Lokio/c;->dQ(I)Lokio/c;
|
|
|
|
sget-object v14, Lokhttp3/s;->brV:[C
|
|
|
|
shr-int/lit8 v15, v6, 0x4
|
|
|
|
and-int/lit8 v15, v15, 0xf
|
|
|
|
aget-char v14, v14, v15
|
|
|
|
invoke-virtual {v5, v14}, Lokio/c;->dQ(I)Lokio/c;
|
|
|
|
sget-object v14, Lokhttp3/s;->brV:[C
|
|
|
|
and-int/lit8 v6, v6, 0xf
|
|
|
|
aget-char v6, v14, v6
|
|
|
|
invoke-virtual {v5, v6}, Lokio/c;->dQ(I)Lokio/c;
|
|
|
|
goto :goto_6
|
|
|
|
:cond_13
|
|
:goto_7
|
|
invoke-static {v13}, Ljava/lang/Character;->charCount(I)I
|
|
|
|
move-result v6
|
|
|
|
add-int/2addr v4, v6
|
|
|
|
const/16 v6, 0x2b
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_14
|
|
invoke-virtual {v5}, Lokio/c;->In()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_15
|
|
move/from16 v12, p1
|
|
|
|
invoke-virtual/range {p0 .. p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static a(Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
.locals 9
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
const/4 v7, 0x1
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move v4, p2
|
|
|
|
move-object v8, p3
|
|
|
|
invoke-static/range {v0 .. v8}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
|
|
.locals 9
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move v4, p2
|
|
|
|
move v5, p3
|
|
|
|
move v6, p4
|
|
|
|
move v7, p5
|
|
|
|
invoke-static/range {v0 .. v8}, Lokhttp3/s;->a(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static a(Ljava/lang/StringBuilder;Ljava/util/List;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/StringBuilder;",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_0
|
|
|
|
const/16 v2, 0x2f
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Lokio/c;Ljava/lang/String;IIZ)V
|
|
.locals 5
|
|
|
|
:goto_0
|
|
if-ge p2, p3, :cond_2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->codePointAt(I)I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x25
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
add-int/lit8 v1, p2, 0x2
|
|
|
|
if-ge v1, p3, :cond_0
|
|
|
|
add-int/lit8 v2, p2, 0x1
|
|
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Lokhttp3/internal/c;->decodeHexDigit(C)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Lokhttp3/internal/c;->decodeHexDigit(C)I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, -0x1
|
|
|
|
if-eq v2, v4, :cond_1
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
shl-int/lit8 p2, v2, 0x4
|
|
|
|
add-int/2addr p2, v3
|
|
|
|
invoke-virtual {p0, p2}, Lokio/c;->dQ(I)Lokio/c;
|
|
|
|
move p2, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/16 v1, 0x2b
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/16 v1, 0x20
|
|
|
|
invoke-virtual {p0, v1}, Lokio/c;->dQ(I)Lokio/c;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, v0}, Lokio/c;->dP(I)Lokio/c;
|
|
|
|
:goto_1
|
|
invoke-static {v0}, Ljava/lang/Character;->charCount(I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr p2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method static b(Ljava/lang/String;IIZ)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
move v0, p1
|
|
|
|
:goto_0
|
|
if-ge v0, p2, :cond_2
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x25
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const/16 v2, 0x2b
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
new-instance v1, Lokio/c;
|
|
|
|
invoke-direct {v1}, Lokio/c;-><init>()V
|
|
|
|
invoke-virtual {v1, p0, p1, v0}, Lokio/c;->o(Ljava/lang/String;II)Lokio/c;
|
|
|
|
invoke-static {v1, p0, v0, p2, p3}, Lokhttp3/s;->a(Lokio/c;Ljava/lang/String;IIZ)V
|
|
|
|
invoke-virtual {v1}, Lokio/c;->In()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static b(Ljava/util/List;Z)Ljava/util/List;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;Z)",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_1
|
|
|
|
invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-static {v3, p1}, Lokhttp3/s;->h(Ljava/lang/String;Z)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-static {v1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/lang/StringBuilder;Ljava/util/List;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/StringBuilder;",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
const/16 v4, 0x26
|
|
|
|
invoke-virtual {p0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/16 v2, 0x3d
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private static d(Ljava/lang/String;II)Z
|
|
.locals 2
|
|
|
|
add-int/lit8 v0, p1, 0x2
|
|
|
|
if-ge v0, p2, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p2
|
|
|
|
const/16 v1, 0x25
|
|
|
|
if-ne p2, v1, :cond_0
|
|
|
|
const/4 p2, 0x1
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Lokhttp3/internal/c;->decodeHexDigit(C)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq p1, v1, :cond_0
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/c;->decodeHexDigit(C)I
|
|
|
|
move-result p0
|
|
|
|
if-eq p0, v1, :cond_0
|
|
|
|
return p2
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static ee(Ljava/lang/String;)I
|
|
.locals 1
|
|
|
|
const-string v0, "http"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/16 p0, 0x50
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const-string v0, "https"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
const/16 p0, 0x1bb
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
const/4 p0, -0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static ef(Ljava/lang/String;)Ljava/util/List;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
if-gt v1, v2, :cond_3
|
|
|
|
const/16 v2, 0x26
|
|
|
|
invoke-virtual {p0, v2, v1}, Ljava/lang/String;->indexOf(II)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
:cond_0
|
|
const/16 v4, 0x3d
|
|
|
|
invoke-virtual {p0, v4, v1}, Ljava/lang/String;->indexOf(II)I
|
|
|
|
move-result v4
|
|
|
|
if-eq v4, v3, :cond_2
|
|
|
|
if-le v4, v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, v1, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
invoke-virtual {p0, v4, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
:goto_1
|
|
invoke-virtual {p0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:goto_2
|
|
add-int/lit8 v1, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static ei(Ljava/lang/String;)Lokhttp3/s;
|
|
.locals 0
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
invoke-static {p0}, Lokhttp3/s;->ej(Ljava/lang/String;)Lokhttp3/s;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static ej(Ljava/lang/String;)Lokhttp3/s;
|
|
.locals 2
|
|
|
|
new-instance v0, Lokhttp3/s$a;
|
|
|
|
invoke-direct {v0}, Lokhttp3/s$a;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, p0}, Lokhttp3/s$a;->b(Lokhttp3/s;Ljava/lang/String;)Lokhttp3/s$a;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lokhttp3/s$a;->Gz()Lokhttp3/s;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static h(Ljava/lang/String;Z)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {p0, v1, v0, p1}, Lokhttp3/s;->b(Ljava/lang/String;IIZ)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final Gq()Ljava/net/URI;
|
|
.locals 11
|
|
|
|
new-instance v0, Lokhttp3/s$a;
|
|
|
|
invoke-direct {v0}, Lokhttp3/s$a;-><init>()V
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->brW:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Lokhttp3/s;->Gs()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->bsa:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Lokhttp3/s;->Gt()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->bsb:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->brX:Ljava/lang/String;
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->brX:Ljava/lang/String;
|
|
|
|
iget v1, p0, Lokhttp3/s;->port:I
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Lokhttp3/s;->ee(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
iget v1, p0, Lokhttp3/s;->port:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, -0x1
|
|
|
|
:goto_0
|
|
iput v1, v0, Lokhttp3/s$a;->port:I
|
|
|
|
iget-object v1, v0, Lokhttp3/s$a;->bsc:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->clear()V
|
|
|
|
iget-object v1, v0, Lokhttp3/s$a;->bsc:Ljava/util/List;
|
|
|
|
invoke-virtual {p0}, Lokhttp3/s;->Gv()Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
invoke-virtual {p0}, Lokhttp3/s;->Gw()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/s$a;->ek(Ljava/lang/String;)Lokhttp3/s$a;
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->fragment:Ljava/lang/String;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
const/16 v2, 0x23
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
iput-object v1, v0, Lokhttp3/s$a;->bse:Ljava/lang/String;
|
|
|
|
iget-object v1, v0, Lokhttp3/s$a;->bsc:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_2
|
|
if-ge v3, v1, :cond_2
|
|
|
|
iget-object v4, v0, Lokhttp3/s$a;->bsc:Ljava/util/List;
|
|
|
|
invoke-interface {v4, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
move-object v5, v4
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
iget-object v4, v0, Lokhttp3/s$a;->bsc:Ljava/util/List;
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x1
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const-string v6, "[]"
|
|
|
|
invoke-static/range {v5 .. v10}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-interface {v4, v3, v5}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Lokhttp3/s$a;->bsd:Ljava/util/List;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v1, v0, Lokhttp3/s$a;->bsd:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
:goto_3
|
|
if-ge v2, v1, :cond_4
|
|
|
|
iget-object v3, v0, Lokhttp3/s$a;->bsd:Ljava/util/List;
|
|
|
|
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v4, v3
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
iget-object v3, v0, Lokhttp3/s$a;->bsd:Ljava/util/List;
|
|
|
|
const/4 v6, 0x1
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x1
|
|
|
|
const/4 v9, 0x1
|
|
|
|
const-string v5, "\\^`{|}"
|
|
|
|
invoke-static/range {v4 .. v9}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v3, v2, v4}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
iget-object v1, v0, Lokhttp3/s$a;->bse:Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iget-object v2, v0, Lokhttp3/s$a;->bse:Ljava/lang/String;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const-string v3, " \"#<>\\^`{|}"
|
|
|
|
invoke-static/range {v2 .. v7}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->bse:Ljava/lang/String;
|
|
|
|
:cond_5
|
|
invoke-virtual {v0}, Lokhttp3/s$a;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:try_start_0
|
|
new-instance v1, Ljava/net/URI;
|
|
|
|
invoke-direct {v1, v0}, Ljava/net/URI;-><init>(Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Ljava/net/URISyntaxException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v1
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
:try_start_1
|
|
const-string v2, "[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"
|
|
|
|
const-string v3, ""
|
|
|
|
invoke-virtual {v0, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;
|
|
|
|
move-result-object v0
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
return-object v0
|
|
|
|
:catch_1
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_5
|
|
|
|
:goto_4
|
|
throw v0
|
|
|
|
:goto_5
|
|
goto :goto_4
|
|
.end method
|
|
|
|
.method public final Gr()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
const-string v1, "https"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final Gs()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->username:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, ""
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0x3
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, ":@"
|
|
|
|
invoke-static {v1, v0, v2, v3}, Lokhttp3/internal/c;->a(Ljava/lang/String;IILjava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final Gt()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->password:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, ""
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
const/16 v1, 0x3a
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, 0x3
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/String;->indexOf(II)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
const/16 v2, 0x40
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final Gu()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x3
|
|
|
|
const/16 v2, 0x2f
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/lang/String;->indexOf(II)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "?#"
|
|
|
|
invoke-static {v1, v0, v2, v3}, Lokhttp3/internal/c;->a(Ljava/lang/String;IILjava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final Gv()Ljava/util/List;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->brW:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x3
|
|
|
|
const/16 v2, 0x2f
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/lang/String;->indexOf(II)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v3
|
|
|
|
const-string v4, "?#"
|
|
|
|
invoke-static {v1, v0, v3, v4}, Lokhttp3/internal/c;->a(Ljava/lang/String;IILjava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iget-object v4, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-static {v4, v0, v1, v2}, Lokhttp3/internal/c;->a(Ljava/lang/String;IIC)I
|
|
|
|
move-result v4
|
|
|
|
iget-object v5, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v5, v0, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
move v0, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v3
|
|
.end method
|
|
|
|
.method public final Gw()Ljava/lang/String;
|
|
.locals 4
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->brZ:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
const/16 v1, 0x3f
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iget-object v1, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x23
|
|
|
|
invoke-static {v1, v0, v2, v3}, Lokhttp3/internal/c;->a(Ljava/lang/String;IIC)I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final Gx()Ljava/lang/String;
|
|
.locals 8
|
|
|
|
const-string v0, "/..."
|
|
|
|
invoke-virtual {p0, v0}, Lokhttp3/s;->eh(Ljava/lang/String;)Lokhttp3/s$a;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, ""
|
|
|
|
const-string v2, " \"\':;<=>@[]^`{}|/\\?#"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-static/range {v1 .. v6}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->bsa:Ljava/lang/String;
|
|
|
|
const-string v2, ""
|
|
|
|
const-string v3, " \"\':;<=>@[]^`{}|/\\?#"
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x1
|
|
|
|
invoke-static/range {v2 .. v7}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZZZZ)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lokhttp3/s$a;->bsb:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/s$a;->Gz()Lokhttp3/s;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/s;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final eg(Ljava/lang/String;)Lokhttp3/s;
|
|
.locals 0
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/s;->eh(Ljava/lang/String;)Lokhttp3/s$a;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lokhttp3/s$a;->Gz()Lokhttp3/s;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final eh(Ljava/lang/String;)Lokhttp3/s$a;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
:try_start_0
|
|
new-instance v0, Lokhttp3/s$a;
|
|
|
|
invoke-direct {v0}, Lokhttp3/s$a;-><init>()V
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokhttp3/s$a;->b(Lokhttp3/s;Ljava/lang/String;)Lokhttp3/s$a;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
instance-of v0, p1, Lokhttp3/s;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lokhttp3/s;
|
|
|
|
iget-object p1, p1, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/s;->url:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|