2019-07-24 11:27:29 +00:00
|
|
|
.class public final enum Lokhttp3/u;
|
|
|
|
.super Ljava/lang/Enum;
|
|
|
|
.source "Protocol.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/lang/Enum<",
|
|
|
|
"Lokhttp3/u;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-10-10 02:17:24 +00:00
|
|
|
.field public static final enum brV:Lokhttp3/u;
|
2019-08-22 06:13:42 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field public static final enum brW:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field public static final enum brX:Lokhttp3/u;
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field public static final enum brY:Lokhttp3/u;
|
2019-07-25 02:21:43 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field public static final enum brZ:Lokhttp3/u;
|
2019-08-01 02:26:13 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field public static final enum bsa:Lokhttp3/u;
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private static final synthetic bsb:[Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const-string v2, "HTTP_1_0"
|
|
|
|
|
|
|
|
const-string v3, "http/1.0"
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v1, v3}, Lokhttp3/u;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->brV:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
const-string v3, "HTTP_1_1"
|
|
|
|
|
|
|
|
const-string v4, "http/1.1"
|
|
|
|
|
|
|
|
invoke-direct {v0, v3, v2, v4}, Lokhttp3/u;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->brW:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
const-string v4, "SPDY_3"
|
|
|
|
|
|
|
|
const-string v5, "spdy/3.1"
|
|
|
|
|
|
|
|
invoke-direct {v0, v4, v3, v5}, Lokhttp3/u;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->brX:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
const/4 v4, 0x3
|
|
|
|
|
|
|
|
const-string v5, "HTTP_2"
|
|
|
|
|
|
|
|
const-string v6, "h2"
|
|
|
|
|
|
|
|
invoke-direct {v0, v5, v4, v6}, Lokhttp3/u;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->brY:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
const/4 v5, 0x4
|
|
|
|
|
|
|
|
const-string v6, "H2_PRIOR_KNOWLEDGE"
|
|
|
|
|
|
|
|
const-string v7, "h2_prior_knowledge"
|
|
|
|
|
|
|
|
invoke-direct {v0, v6, v5, v7}, Lokhttp3/u;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->brZ:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
const/4 v6, 0x5
|
|
|
|
|
|
|
|
const-string v7, "QUIC"
|
|
|
|
|
|
|
|
const-string v8, "quic"
|
|
|
|
|
|
|
|
invoke-direct {v0, v7, v6, v8}, Lokhttp3/u;-><init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->bsa:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x6
|
|
|
|
|
|
|
|
new-array v0, v0, [Lokhttp3/u;
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v7, Lokhttp3/u;->brV:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aput-object v7, v0, v1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lokhttp3/u;->brW:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lokhttp3/u;->brX:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lokhttp3/u;->brY:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lokhttp3/u;->brZ:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aput-object v1, v0, v5
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lokhttp3/u;->bsa:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
aput-object v1, v0, v6
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lokhttp3/u;->bsb:[Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
|
|
|
|
|
|
|
|
iput-object p3, p0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.method public static dM(Ljava/lang/String;)Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->brV:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, v0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p0, Lokhttp3/u;->brV:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->brW:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, v0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p0, Lokhttp3/u;->brW:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->brZ:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, v0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p0, Lokhttp3/u;->brZ:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->brY:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, v0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p0, Lokhttp3/u;->brY:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_3
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->brX:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, v0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p0, Lokhttp3/u;->brX:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_4
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->bsa:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, v0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p0, Lokhttp3/u;->bsa:Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string v1, "Unexpected protocol: "
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static valueOf(Ljava/lang/String;)Lokhttp3/u;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-class v0, Lokhttp3/u;
|
|
|
|
|
|
|
|
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
check-cast p0, Lokhttp3/u;
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static values()[Lokhttp3/u;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lokhttp3/u;->bsb:[Lokhttp3/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, [Lokhttp3/u;->clone()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, [Lokhttp3/u;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lokhttp3/u;->protocol:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|