987 lines
23 KiB
Smali
987 lines
23 KiB
Smali
.class public Lokhttp3/w;
|
|
.super Ljava/lang/Object;
|
|
.source "OkHttpClient.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Cloneable;
|
|
.implements Lokhttp3/f$a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/w$a;,
|
|
Lokhttp3/w$b;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final cpf:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/x;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final cpg:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/l;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final cph:Lokhttp3/w$b;
|
|
|
|
|
|
# instance fields
|
|
.field public final aXE:Ljavax/net/ssl/HostnameVerifier;
|
|
|
|
.field public final cjE:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/x;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final cjF:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/l;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final cjG:Lokhttp3/q;
|
|
|
|
.field public final cjH:Ljavax/net/SocketFactory;
|
|
|
|
.field public final cjI:Lokhttp3/h;
|
|
|
|
.field public final cjJ:Lokhttp3/b;
|
|
|
|
.field public final cjK:Ljava/net/Proxy;
|
|
|
|
.field public final cjL:Ljava/net/ProxySelector;
|
|
|
|
.field final ckE:Lokhttp3/internal/i/c;
|
|
|
|
.field final coO:Lokhttp3/p;
|
|
|
|
.field public final coP:Lokhttp3/k;
|
|
|
|
.field final coQ:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/Interceptor;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final coR:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/Interceptor;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final coS:Lokhttp3/s$c;
|
|
|
|
.field public final coT:Z
|
|
|
|
.field public final coU:Lokhttp3/b;
|
|
|
|
.field public final coV:Z
|
|
|
|
.field public final coW:Z
|
|
|
|
.field final coX:Lokhttp3/d;
|
|
|
|
.field public final coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
.field final coZ:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
.field public final cookieJar:Lokhttp3/n;
|
|
|
|
.field public final cpa:I
|
|
|
|
.field final cpb:I
|
|
|
|
.field final cpc:I
|
|
|
|
.field final cpd:I
|
|
|
|
.field public final cpe:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
new-instance v0, Lokhttp3/w$b;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/w$b;-><init>(B)V
|
|
|
|
sput-object v0, Lokhttp3/w;->cph:Lokhttp3/w$b;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v2, v0, [Lokhttp3/x;
|
|
|
|
sget-object v3, Lokhttp3/x;->cpr:Lokhttp3/x;
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
sget-object v3, Lokhttp3/x;->cpp:Lokhttp3/x;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
invoke-static {v2}, Lokhttp3/internal/b;->e([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
sput-object v2, Lokhttp3/w;->cpf:Ljava/util/List;
|
|
|
|
new-array v0, v0, [Lokhttp3/l;
|
|
|
|
sget-object v2, Lokhttp3/l;->cnk:Lokhttp3/l;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sget-object v1, Lokhttp3/l;->cnm:Lokhttp3/l;
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
invoke-static {v0}, Lokhttp3/internal/b;->e([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/w;->cpg:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lokhttp3/w$a;
|
|
|
|
invoke-direct {v0}, Lokhttp3/w$a;-><init>()V
|
|
|
|
invoke-direct {p0, v0}, Lokhttp3/w;-><init>(Lokhttp3/w$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokhttp3/w$a;)V
|
|
.locals 3
|
|
|
|
const-string v0, "builder"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coO:Lokhttp3/p;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coO:Lokhttp3/p;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coP:Lokhttp3/k;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coP:Lokhttp3/k;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coQ:Ljava/util/List;
|
|
|
|
invoke-static {v0}, Lokhttp3/internal/b;->am(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coQ:Ljava/util/List;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coR:Ljava/util/List;
|
|
|
|
invoke-static {v0}, Lokhttp3/internal/b;->am(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coR:Ljava/util/List;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coS:Lokhttp3/s$c;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coS:Lokhttp3/s$c;
|
|
|
|
iget-boolean v0, p1, Lokhttp3/w$a;->coT:Z
|
|
|
|
iput-boolean v0, p0, Lokhttp3/w;->coT:Z
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coU:Lokhttp3/b;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coU:Lokhttp3/b;
|
|
|
|
iget-boolean v0, p1, Lokhttp3/w$a;->coV:Z
|
|
|
|
iput-boolean v0, p0, Lokhttp3/w;->coV:Z
|
|
|
|
iget-boolean v0, p1, Lokhttp3/w$a;->coW:Z
|
|
|
|
iput-boolean v0, p0, Lokhttp3/w;->coW:Z
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cookieJar:Lokhttp3/n;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cookieJar:Lokhttp3/n;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coX:Lokhttp3/d;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coX:Lokhttp3/d;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjG:Lokhttp3/q;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cjG:Lokhttp3/q;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjK:Ljava/net/Proxy;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cjK:Ljava/net/Proxy;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjK:Ljava/net/Proxy;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v0, Lokhttp3/internal/h/a;->cwi:Lokhttp3/internal/h/a;
|
|
|
|
check-cast v0, Ljava/net/ProxySelector;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjL:Ljava/net/ProxySelector;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {}, Ljava/net/ProxySelector;->getDefault()Ljava/net/ProxySelector;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
if-nez v0, :cond_2
|
|
|
|
sget-object v0, Lokhttp3/internal/h/a;->cwi:Lokhttp3/internal/h/a;
|
|
|
|
check-cast v0, Ljava/net/ProxySelector;
|
|
|
|
:cond_2
|
|
:goto_0
|
|
iput-object v0, p0, Lokhttp3/w;->cjL:Ljava/net/ProxySelector;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjJ:Lokhttp3/b;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cjJ:Lokhttp3/b;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjH:Ljavax/net/SocketFactory;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cjH:Ljavax/net/SocketFactory;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjF:Ljava/util/List;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cjF:Ljava/util/List;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cjE:Ljava/util/List;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->cjE:Ljava/util/List;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->aXE:Ljavax/net/ssl/HostnameVerifier;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->aXE:Ljavax/net/ssl/HostnameVerifier;
|
|
|
|
iget v0, p1, Lokhttp3/w$a;->cpj:I
|
|
|
|
iput v0, p0, Lokhttp3/w;->cpa:I
|
|
|
|
iget v0, p1, Lokhttp3/w$a;->cpk:I
|
|
|
|
iput v0, p0, Lokhttp3/w;->cpb:I
|
|
|
|
iget v0, p1, Lokhttp3/w$a;->cpl:I
|
|
|
|
iput v0, p0, Lokhttp3/w;->cpc:I
|
|
|
|
iget v0, p1, Lokhttp3/w$a;->cpm:I
|
|
|
|
iput v0, p0, Lokhttp3/w;->cpd:I
|
|
|
|
iget v0, p1, Lokhttp3/w$a;->cpn:I
|
|
|
|
iput v0, p0, Lokhttp3/w;->cpe:I
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_9
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->cjF:Ljava/util/List;
|
|
|
|
check-cast v0, Ljava/lang/Iterable;
|
|
|
|
instance-of v2, v0, Ljava/util/Collection;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
move-object v2, v0
|
|
|
|
check-cast v2, Ljava/util/Collection;
|
|
|
|
invoke-interface {v2}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
:cond_3
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_4
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lokhttp3/l;
|
|
|
|
iget-boolean v2, v2, Lokhttp3/l;->cnd:Z
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
sget-object v0, Lokhttp3/internal/g/f;->cvS:Lokhttp3/internal/g/f$a;
|
|
|
|
invoke-static {}, Lokhttp3/internal/g/f;->St()Lokhttp3/internal/g/f;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/g/f;->Sp()Ljavax/net/ssl/X509TrustManager;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coZ:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
sget-object v0, Lokhttp3/internal/g/f;->cvS:Lokhttp3/internal/g/f$a;
|
|
|
|
invoke-static {}, Lokhttp3/internal/g/f;->St()Lokhttp3/internal/g/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lokhttp3/w;->coZ:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/internal/g/f;->d(Ljavax/net/ssl/X509TrustManager;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->coZ:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
|
|
|
:cond_7
|
|
invoke-static {v0}, Lokhttp3/w$b;->a(Ljavax/net/ssl/X509TrustManager;)Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
sget-object v0, Lokhttp3/internal/i/c;->cwu:Lokhttp3/internal/i/c$a;
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->coZ:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
|
|
|
:cond_8
|
|
invoke-static {v0}, Lokhttp3/internal/i/c$a;->e(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->ckE:Lokhttp3/internal/i/c;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
:goto_2
|
|
iget-object v0, p1, Lokhttp3/w$a;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->ckE:Lokhttp3/internal/i/c;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->ckE:Lokhttp3/internal/i/c;
|
|
|
|
iget-object v0, p1, Lokhttp3/w$a;->cpi:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
iput-object v0, p0, Lokhttp3/w;->coZ:Ljavax/net/ssl/X509TrustManager;
|
|
|
|
:goto_3
|
|
iget-object v0, p0, Lokhttp3/w;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
sget-object v0, Lokhttp3/internal/g/f;->cvS:Lokhttp3/internal/g/f$a;
|
|
|
|
invoke-static {}, Lokhttp3/internal/g/f;->St()Lokhttp3/internal/g/f;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v2, p0, Lokhttp3/w;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
invoke-virtual {v0, v2}, Lokhttp3/internal/g/f;->a(Ljavax/net/ssl/SSLSocketFactory;)V
|
|
|
|
:cond_a
|
|
iget-object p1, p1, Lokhttp3/w$a;->cjI:Lokhttp3/h;
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->ckE:Lokhttp3/internal/i/c;
|
|
|
|
iget-object v2, p1, Lokhttp3/h;->ckE:Lokhttp3/internal/i/c;
|
|
|
|
invoke-static {v2, v0}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
goto :goto_4
|
|
|
|
:cond_b
|
|
new-instance v2, Lokhttp3/h;
|
|
|
|
iget-object p1, p1, Lokhttp3/h;->ckD:Ljava/util/Set;
|
|
|
|
invoke-direct {v2, p1, v0}, Lokhttp3/h;-><init>(Ljava/util/Set;Lokhttp3/internal/i/c;)V
|
|
|
|
move-object p1, v2
|
|
|
|
:goto_4
|
|
iput-object p1, p0, Lokhttp3/w;->cjI:Lokhttp3/h;
|
|
|
|
iget-object p1, p0, Lokhttp3/w;->coQ:Ljava/util/List;
|
|
|
|
const-string v0, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Interceptor?>"
|
|
|
|
if-eqz p1, :cond_f
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
xor-int/2addr p1, v1
|
|
|
|
if-eqz p1, :cond_e
|
|
|
|
iget-object p1, p0, Lokhttp3/w;->coR:Ljava/util/List;
|
|
|
|
if-eqz p1, :cond_d
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
xor-int/2addr p1, v1
|
|
|
|
if-eqz p1, :cond_c
|
|
|
|
return-void
|
|
|
|
:cond_c
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "Null network interceptor: "
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->coR:Ljava/util/List;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_d
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_e
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "Null interceptor: "
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->coQ:Ljava/util/List;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_f
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final synthetic QK()Ljava/util/List;
|
|
.locals 1
|
|
|
|
sget-object v0, Lokhttp3/w;->cpf:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic QL()Ljava/util/List;
|
|
.locals 1
|
|
|
|
sget-object v0, Lokhttp3/w;->cpg:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final synthetic a(Lokhttp3/w;)Ljavax/net/ssl/SSLSocketFactory;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/w;->coY:Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final QJ()Lokhttp3/p;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/w;->coO:Lokhttp3/p;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/z;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;
|
|
.locals 7
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "listener"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lokhttp3/internal/j/a;
|
|
|
|
new-instance v4, Ljava/util/Random;
|
|
|
|
invoke-direct {v4}, Ljava/util/Random;-><init>()V
|
|
|
|
iget v1, p0, Lokhttp3/w;->cpe:I
|
|
|
|
int-to-long v5, v1
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, p2
|
|
|
|
invoke-direct/range {v1 .. v6}, Lokhttp3/internal/j/a;-><init>(Lokhttp3/z;Lokhttp3/WebSocketListener;Ljava/util/Random;J)V
|
|
|
|
const-string p1, "client"
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance p1, Lokhttp3/w$a;
|
|
|
|
invoke-direct {p1, p0}, Lokhttp3/w$a;-><init>(Lokhttp3/w;)V
|
|
|
|
sget-object p2, Lokhttp3/s;->cnM:Lokhttp3/s;
|
|
|
|
const-string v1, "eventListener"
|
|
|
|
invoke-static {p2, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Lokhttp3/w$a;
|
|
|
|
invoke-static {p2}, Lokhttp3/internal/b;->a(Lokhttp3/s;)Lokhttp3/s$c;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p1, Lokhttp3/w$a;->coS:Lokhttp3/s$c;
|
|
|
|
sget-object p2, Lokhttp3/internal/j/a;->cwN:Ljava/util/List;
|
|
|
|
const-string v1, "protocols"
|
|
|
|
invoke-static {p2, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p1, Lokhttp3/w$a;
|
|
|
|
move-object v1, p2
|
|
|
|
check-cast v1, Ljava/util/Collection;
|
|
|
|
invoke-static {v1}, Lkotlin/a/m;->toMutableList(Ljava/util/Collection;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Lokhttp3/x;->cps:Lokhttp3/x;
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
sget-object v2, Lokhttp3/x;->cpp:Lokhttp3/x;
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_9
|
|
|
|
sget-object v2, Lokhttp3/x;->cps:Lokhttp3/x;
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-gt v2, v4, :cond_3
|
|
|
|
:cond_2
|
|
const/4 v3, 0x1
|
|
|
|
:cond_3
|
|
if-eqz v3, :cond_8
|
|
|
|
sget-object v2, Lokhttp3/x;->cpo:Lokhttp3/x;
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
xor-int/2addr v2, v4
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
xor-int/2addr v2, v4
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
sget-object v2, Lokhttp3/x;->cpq:Lokhttp3/x;
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
|
|
|
|
invoke-static {p2}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v1, "Collections.unmodifiableList(protocols)"
|
|
|
|
invoke-static {p2, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p2, p1, Lokhttp3/w$a;->cjE:Ljava/util/List;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/w$a;->QM()Lokhttp3/w;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, v0, Lokhttp3/internal/j/a;->cpz:Lokhttp3/z;
|
|
|
|
invoke-virtual {p2}, Lokhttp3/z;->QQ()Lokhttp3/z$a;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v1, "Upgrade"
|
|
|
|
const-string v2, "websocket"
|
|
|
|
invoke-virtual {p2, v1, v2}, Lokhttp3/z$a;->aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v2, "Connection"
|
|
|
|
invoke-virtual {p2, v2, v1}, Lokhttp3/z$a;->aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v1, v0, Lokhttp3/internal/j/a;->key:Ljava/lang/String;
|
|
|
|
const-string v2, "Sec-WebSocket-Key"
|
|
|
|
invoke-virtual {p2, v2, v1}, Lokhttp3/z$a;->aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v1, "Sec-WebSocket-Version"
|
|
|
|
const-string v2, "13"
|
|
|
|
invoke-virtual {p2, v1, v2}, Lokhttp3/z$a;->aq(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/z$a;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lokhttp3/z$a;->QV()Lokhttp3/z;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object v1, Lokhttp3/y;->cpB:Lokhttp3/y$b;
|
|
|
|
invoke-static {p1, p2, v4}, Lokhttp3/y$b;->a(Lokhttp3/w;Lokhttp3/z;Z)Lokhttp3/y;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lokhttp3/f;
|
|
|
|
iput-object p1, v0, Lokhttp3/internal/j/a;->crB:Lokhttp3/f;
|
|
|
|
iget-object p1, v0, Lokhttp3/internal/j/a;->crB:Lokhttp3/f;
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
|
|
|
:cond_4
|
|
new-instance v1, Lokhttp3/internal/j/a$g;
|
|
|
|
invoke-direct {v1, v0, p2}, Lokhttp3/internal/j/a$g;-><init>(Lokhttp3/internal/j/a;Lokhttp3/z;)V
|
|
|
|
check-cast v1, Lokhttp3/g;
|
|
|
|
invoke-interface {p1, v1}, Lokhttp3/f;->a(Lokhttp3/g;)V
|
|
|
|
check-cast v0, Lokhttp3/WebSocket;
|
|
|
|
return-object v0
|
|
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "protocols must not contain null"
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_6
|
|
new-instance p1, Lkotlin/r;
|
|
|
|
const-string p2, "null cannot be cast to non-null type kotlin.collections.List<okhttp3.Protocol?>"
|
|
|
|
invoke-direct {p1, p2}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_7
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "protocols must not contain http/1.0: "
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
|
|
:cond_8
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "protocols containing h2_prior_knowledge cannot use other protocols: "
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
|
|
:cond_9
|
|
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "protocols must contain h2_prior_knowledge or http/1.1: "
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public final c(Lokhttp3/z;)Lokhttp3/f;
|
|
.locals 1
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sget-object v0, Lokhttp3/y;->cpB:Lokhttp3/y$b;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {p0, p1, v0}, Lokhttp3/y$b;->a(Lokhttp3/w;Lokhttp3/z;Z)Lokhttp3/y;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lokhttp3/f;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public clone()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Ljava/lang/Object;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|