mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
982 lines
27 KiB
Smali
982 lines
27 KiB
Smali
.class public final Lokhttp3/internal/http/RealInterceptorChain;
|
|
.super Ljava/lang/Object;
|
|
.source "RealInterceptorChain.kt"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/Interceptor$Chain;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nRealInterceptorChain.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealInterceptorChain.kt\nokhttp3/internal/http/RealInterceptorChain\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,123:1\n1#2:124\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u000f\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0018\u00002\u00020\u0001BM\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00020\u00060\u0005\u0012\u0006\u0010\u0007\u001a\u00020\u0008\u0012\u0008\u0010\t\u001a\u0004\u0018\u00010\n\u0012\u0006\u0010\u000b\u001a\u00020\u000c\u0012\u0006\u0010\r\u001a\u00020\u0008\u0012\u0006\u0010\u000e\u001a\u00020\u0008\u0012\u0006\u0010\u000f\u001a\u00020\u0008\u00a2\u0006\u0002\u0010\u0010J\u0008\u0010\u0002\u001a\u00020\u001cH\u0016J\u0008\u0010\r\u001a\u00020\u0008H\u0016J\n\u0010\u001d\u001a\u0004\u0018\u00010\u001eH\u0016JK\u0010\u001f\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u0007\u001a\u00020\u00082\n\u0008\u0002\u0010\t\u001a\u0004\u0018\u00010\n2\u0008\u0008\u0002\u0010\u000b\u001a\u00020\u000c2\u0008\u0008\u0002\u0010\r\u001a\u00020\u00082\u0008\u0008\u0002\u0010\u000e\u001a\u00020\u00082\u0008\u0008\u0002\u0010\u000f\u001a\u00020\u0008H\u0000\u00a2\u0006\u0002\u0008 J\u0010\u0010!\u001a\u00020\"2\u0006\u0010\u000b\u001a\u00020\u000cH\u0016J\u0008\u0010\u000e\u001a\u00020\u0008H\u0016J\u0008\u0010\u000b\u001a\u00020\u000cH\u0016J\u0018\u0010#\u001a\u00020\u00012\u0006\u0010$\u001a\u00020\u00082\u0006\u0010%\u001a\u00020&H\u0016J\u0018\u0010\'\u001a\u00020\u00012\u0006\u0010$\u001a\u00020\u00082\u0006\u0010%\u001a\u00020&H\u0016J\u0018\u0010(\u001a\u00020\u00012\u0006\u0010$\u001a\u00020\u00082\u0006\u0010%\u001a\u00020&H\u0016J\u0008\u0010\u000f\u001a\u00020\u0008H\u0016R\u0014\u0010\u0002\u001a\u00020\u0003X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0011\u0010\u0012R\u000e\u0010\u0013\u001a\u00020\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010\r\u001a\u00020\u0008X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0014\u0010\u0015R\u0016\u0010\t\u001a\u0004\u0018\u00010\nX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0016\u0010\u0017R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00020\u00060\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u000e\u001a\u00020\u0008X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0018\u0010\u0015R\u0014\u0010\u000b\u001a\u00020\u000cX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0019\u0010\u001aR\u0014\u0010\u000f\u001a\u00020\u0008X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u001b\u0010\u0015\u00a8\u0006)"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/http/RealInterceptorChain;",
|
|
"Lokhttp3/Interceptor$Chain;",
|
|
"call",
|
|
"Lokhttp3/internal/connection/RealCall;",
|
|
"interceptors",
|
|
"",
|
|
"Lokhttp3/Interceptor;",
|
|
"index",
|
|
"",
|
|
"exchange",
|
|
"Lokhttp3/internal/connection/Exchange;",
|
|
"request",
|
|
"Lokhttp3/Request;",
|
|
"connectTimeoutMillis",
|
|
"readTimeoutMillis",
|
|
"writeTimeoutMillis",
|
|
"(Lokhttp3/internal/connection/RealCall;Ljava/util/List;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)V",
|
|
"getCall$okhttp",
|
|
"()Lokhttp3/internal/connection/RealCall;",
|
|
"calls",
|
|
"getConnectTimeoutMillis$okhttp",
|
|
"()I",
|
|
"getExchange$okhttp",
|
|
"()Lokhttp3/internal/connection/Exchange;",
|
|
"getReadTimeoutMillis$okhttp",
|
|
"getRequest$okhttp",
|
|
"()Lokhttp3/Request;",
|
|
"getWriteTimeoutMillis$okhttp",
|
|
"Lokhttp3/Call;",
|
|
"connection",
|
|
"Lokhttp3/Connection;",
|
|
"copy",
|
|
"copy$okhttp",
|
|
"proceed",
|
|
"Lokhttp3/Response;",
|
|
"withConnectTimeout",
|
|
"timeout",
|
|
"unit",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
"withReadTimeout",
|
|
"withWriteTimeout",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final call:Lokhttp3/internal/connection/RealCall;
|
|
|
|
.field private calls:I
|
|
|
|
.field private final connectTimeoutMillis:I
|
|
|
|
.field private final exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
.field private final index:I
|
|
|
|
.field private final interceptors:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/Interceptor;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final readTimeoutMillis:I
|
|
|
|
.field private final request:Lokhttp3/Request;
|
|
|
|
.field private final writeTimeoutMillis:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/internal/connection/RealCall;Ljava/util/List;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokhttp3/internal/connection/RealCall;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lokhttp3/Interceptor;",
|
|
">;I",
|
|
"Lokhttp3/internal/connection/Exchange;",
|
|
"Lokhttp3/Request;",
|
|
"III)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "call"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "interceptors"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http/RealInterceptorChain;->call:Lokhttp3/internal/connection/RealCall;
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
iput p3, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
iput-object p4, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
iput-object p5, p0, Lokhttp3/internal/http/RealInterceptorChain;->request:Lokhttp3/Request;
|
|
|
|
iput p6, p0, Lokhttp3/internal/http/RealInterceptorChain;->connectTimeoutMillis:I
|
|
|
|
iput p7, p0, Lokhttp3/internal/http/RealInterceptorChain;->readTimeoutMillis:I
|
|
|
|
iput p8, p0, Lokhttp3/internal/http/RealInterceptorChain;->writeTimeoutMillis:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$okhttp$default(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
|
|
.locals 4
|
|
|
|
and-int/lit8 p8, p7, 0x1
|
|
|
|
if-eqz p8, :cond_0
|
|
|
|
.line 50
|
|
iget p1, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
:cond_0
|
|
and-int/lit8 p8, p7, 0x2
|
|
|
|
if-eqz p8, :cond_1
|
|
|
|
.line 51
|
|
iget-object p2, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
:cond_1
|
|
move-object p8, p2
|
|
|
|
and-int/lit8 p2, p7, 0x4
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 52
|
|
iget-object p3, p0, Lokhttp3/internal/http/RealInterceptorChain;->request:Lokhttp3/Request;
|
|
|
|
:cond_2
|
|
move-object v0, p3
|
|
|
|
and-int/lit8 p2, p7, 0x8
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 53
|
|
iget p4, p0, Lokhttp3/internal/http/RealInterceptorChain;->connectTimeoutMillis:I
|
|
|
|
:cond_3
|
|
move v1, p4
|
|
|
|
and-int/lit8 p2, p7, 0x10
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
.line 54
|
|
iget p5, p0, Lokhttp3/internal/http/RealInterceptorChain;->readTimeoutMillis:I
|
|
|
|
:cond_4
|
|
move v2, p5
|
|
|
|
and-int/lit8 p2, p7, 0x20
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
.line 55
|
|
iget p6, p0, Lokhttp3/internal/http/RealInterceptorChain;->writeTimeoutMillis:I
|
|
|
|
:cond_5
|
|
move v3, p6
|
|
|
|
move-object p2, p0
|
|
|
|
move p3, p1
|
|
|
|
move-object p4, p8
|
|
|
|
move-object p5, v0
|
|
|
|
move p6, v1
|
|
|
|
move p7, v2
|
|
|
|
move p8, v3
|
|
|
|
invoke-virtual/range {p2 .. p8}, Lokhttp3/internal/http/RealInterceptorChain;->copy$okhttp(ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public call()Lokhttp3/Call;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->call:Lokhttp3/internal/connection/RealCall;
|
|
|
|
.line 85
|
|
check-cast p0, Lokhttp3/Call;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public connectTimeoutMillis()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->connectTimeoutMillis:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public connection()Lokhttp3/Connection;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 59
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/Exchange;->getConnection$okhttp()Lokhttp3/internal/connection/RealConnection;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
check-cast p0, Lokhttp3/Connection;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final copy$okhttp(ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)Lokhttp3/internal/http/RealInterceptorChain;
|
|
.locals 11
|
|
|
|
move-object v0, p0
|
|
|
|
const-string v1, "request"
|
|
|
|
move-object v7, p3
|
|
|
|
invoke-static {p3, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 56
|
|
new-instance v1, Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
iget-object v3, v0, Lokhttp3/internal/http/RealInterceptorChain;->call:Lokhttp3/internal/connection/RealCall;
|
|
|
|
iget-object v4, v0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
move-object v2, v1
|
|
|
|
move v5, p1
|
|
|
|
move-object v6, p2
|
|
|
|
move v8, p4
|
|
|
|
move/from16 v9, p5
|
|
|
|
move/from16 v10, p6
|
|
|
|
invoke-direct/range {v2 .. v10}, Lokhttp3/internal/http/RealInterceptorChain;-><init>(Lokhttp3/internal/connection/RealCall;Ljava/util/List;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final getCall$okhttp()Lokhttp3/internal/connection/RealCall;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->call:Lokhttp3/internal/connection/RealCall;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getConnectTimeoutMillis$okhttp()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->connectTimeoutMillis:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getExchange$okhttp()Lokhttp3/internal/connection/Exchange;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getReadTimeoutMillis$okhttp()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->readTimeoutMillis:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getRequest$okhttp()Lokhttp3/Request;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->request:Lokhttp3/Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getWriteTimeoutMillis$okhttp()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->writeTimeoutMillis:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public proceed(Lokhttp3/Request;)Lokhttp3/Response;
|
|
.locals 14
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
.line 91
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
move v0, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_c
|
|
|
|
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->calls:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iput v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->calls:I
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
const-string v1, " must call proceed() exactly once"
|
|
|
|
const-string v4, "network interceptor "
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 96
|
|
invoke-virtual {v0}, Lokhttp3/internal/connection/Exchange;->getFinder$okhttp()Lokhttp3/internal/connection/ExchangeFinder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v0, v5}, Lokhttp3/internal/connection/ExchangeFinder;->sameHostAndPort(Lokhttp3/HttpUrl;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->calls:I
|
|
|
|
if-ne v0, v3, :cond_1
|
|
|
|
move v0, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v0, v2
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
.line 100
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
sub-int/2addr p0, v3
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokhttp3/Interceptor;
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 99
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 97
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
sub-int/2addr p0, v3
|
|
|
|
invoke-interface {v0, p0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokhttp3/Interceptor;
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " must retain the same host and port"
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 96
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
:goto_2
|
|
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
add-int/lit8 v6, v0, 0x1
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/16 v12, 0x3a
|
|
|
|
const/4 v13, 0x0
|
|
|
|
move-object v5, p0
|
|
|
|
move-object v8, p1
|
|
|
|
.line 105
|
|
invoke-static/range {v5 .. v13}, Lokhttp3/internal/http/RealInterceptorChain;->copy$okhttp$default(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
iget v5, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
.line 106
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lokhttp3/Interceptor;
|
|
|
|
.line 109
|
|
move-object v5, p1
|
|
|
|
check-cast v5, Lokhttp3/Interceptor$Chain;
|
|
|
|
invoke-interface {v0, v5}, Lokhttp3/Interceptor;->intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v6, "interceptor "
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
iget-object v7, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-eqz v7, :cond_8
|
|
|
|
iget v7, p0, Lokhttp3/internal/http/RealInterceptorChain;->index:I
|
|
|
|
add-int/2addr v7, v3
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->interceptors:Ljava/util/List;
|
|
|
|
.line 113
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result p0
|
|
|
|
if-ge v7, p0, :cond_6
|
|
|
|
iget p0, p1, Lokhttp3/internal/http/RealInterceptorChain;->calls:I
|
|
|
|
if-ne p0, v3, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
move p0, v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
:goto_3
|
|
move p0, v3
|
|
|
|
:goto_4
|
|
if-eqz p0, :cond_7
|
|
|
|
goto :goto_5
|
|
|
|
.line 114
|
|
:cond_7
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 113
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 118
|
|
:cond_8
|
|
:goto_5
|
|
invoke-virtual {v5}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_9
|
|
|
|
move v2, v3
|
|
|
|
:cond_9
|
|
if-eqz v2, :cond_a
|
|
|
|
return-object v5
|
|
|
|
:cond_a
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " returned a response with no body"
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
.line 109
|
|
:cond_b
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
.line 110
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, " returned null"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 109
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 91
|
|
:cond_c
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Check failed."
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public readTimeoutMillis()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->readTimeoutMillis:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public request()Lokhttp3/Request;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->request:Lokhttp3/Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public withConnectTimeout(ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
|
|
.locals 10
|
|
|
|
const-string v0, "unit"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const-string v0, "connectTimeout"
|
|
|
|
int-to-long v5, p1
|
|
|
|
.line 66
|
|
invoke-static {v0, v5, v6, p2}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0x37
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-static/range {v1 .. v9}, Lokhttp3/internal/http/RealInterceptorChain;->copy$okhttp$default(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokhttp3/Interceptor$Chain;
|
|
|
|
return-object p0
|
|
|
|
.line 64
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Timeouts can\'t be adjusted in a network interceptor"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public withReadTimeout(ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
|
|
.locals 10
|
|
|
|
const-string v0, "unit"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const-string v0, "readTimeout"
|
|
|
|
int-to-long v6, p1
|
|
|
|
.line 74
|
|
invoke-static {v0, v6, v7, p2}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0x2f
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-static/range {v1 .. v9}, Lokhttp3/internal/http/RealInterceptorChain;->copy$okhttp$default(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokhttp3/Interceptor$Chain;
|
|
|
|
return-object p0
|
|
|
|
.line 72
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Timeouts can\'t be adjusted in a network interceptor"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public withWriteTimeout(ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
|
|
.locals 10
|
|
|
|
const-string v0, "unit"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const-string v0, "writeTimeout"
|
|
|
|
int-to-long v7, p1
|
|
|
|
.line 82
|
|
invoke-static {v0, v7, v8, p2}, Lokhttp3/internal/Util;->checkDuration(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
|
|
|
|
move-result v7
|
|
|
|
const/16 v8, 0x1f
|
|
|
|
const/4 v9, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-static/range {v1 .. v9}, Lokhttp3/internal/http/RealInterceptorChain;->copy$okhttp$default(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokhttp3/Interceptor$Chain;
|
|
|
|
return-object p0
|
|
|
|
.line 80
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Timeouts can\'t be adjusted in a network interceptor"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public writeTimeoutMillis()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lokhttp3/internal/http/RealInterceptorChain;->writeTimeoutMillis:I
|
|
|
|
return p0
|
|
.end method
|