RealInterceptorChain.smali
.class public final Lokhttp3/internal/http/RealInterceptorChain;
.super Ljava/lang/Object;
# interfaces
.implements Lokhttp3/Interceptor$Chain;
# instance fields
.field private a:I
.field private final b:Lokhttp3/internal/connection/RealCall;
.field private final c:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/Interceptor;",
">;"
}
.end annotation
.end field
.field private final d:I
.field private final e:Lokhttp3/internal/connection/Exchange;
.field private final f:Lokhttp3/Request;
.field private final g:I
.field private final h:I
.field private final i:I
# direct methods
.method public constructor <init>(Lokhttp3/internal/connection/RealCall;Ljava/util/List;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)V
.registers 10
.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;->c(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "interceptors"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "request"
invoke-static {p5, v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/internal/http/RealInterceptorChain;->b:Lokhttp3/internal/connection/RealCall;
iput-object p2, p0, Lokhttp3/internal/http/RealInterceptorChain;->c:Ljava/util/List;
iput p3, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
iput-object p4, p0, Lokhttp3/internal/http/RealInterceptorChain;->e:Lokhttp3/internal/connection/Exchange;
iput-object p5, p0, Lokhttp3/internal/http/RealInterceptorChain;->f:Lokhttp3/Request;
iput p6, p0, Lokhttp3/internal/http/RealInterceptorChain;->g:I
iput p7, p0, Lokhttp3/internal/http/RealInterceptorChain;->h:I
iput p8, p0, Lokhttp3/internal/http/RealInterceptorChain;->i:I
return-void
.end method
.method public static synthetic d(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
.registers 13
and-int/lit8 p8, p7, 0x1
if-eqz p8, :cond_6
iget p1, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
:cond_6
and-int/lit8 p8, p7, 0x2
if-eqz p8, :cond_c
iget-object p2, p0, Lokhttp3/internal/http/RealInterceptorChain;->e:Lokhttp3/internal/connection/Exchange;
:cond_c
move-object p8, p2
and-int/lit8 p2, p7, 0x4
if-eqz p2, :cond_13
iget-object p3, p0, Lokhttp3/internal/http/RealInterceptorChain;->f:Lokhttp3/Request;
:cond_13
move-object v0, p3
and-int/lit8 p2, p7, 0x8
if-eqz p2, :cond_1a
iget p4, p0, Lokhttp3/internal/http/RealInterceptorChain;->g:I
:cond_1a
move v1, p4
and-int/lit8 p2, p7, 0x10
if-eqz p2, :cond_21
iget p5, p0, Lokhttp3/internal/http/RealInterceptorChain;->h:I
:cond_21
move v2, p5
and-int/lit8 p2, p7, 0x20
if-eqz p2, :cond_28
iget p6, p0, Lokhttp3/internal/http/RealInterceptorChain;->i:I
:cond_28
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;->c(ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)Lokhttp3/internal/http/RealInterceptorChain;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public a(Lokhttp3/Request;)Lokhttp3/Response;
.registers 16
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "request"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;Ljava/lang/String;)V
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
iget-object v1, p0, Lokhttp3/internal/http/RealInterceptorChain;->c:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x1
if-ge v0, v1, :cond_13
const/4 v0, 0x1
goto :goto_14
:cond_13
const/4 v0, 0x0
:goto_14
if-eqz v0, :cond_126
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->a:I
add-int/2addr v0, v3
iput v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->a:I
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->e:Lokhttp3/internal/connection/Exchange;
const-string v1, " must call proceed() exactly once"
const-string v4, "network interceptor "
if-eqz v0, :cond_8b
invoke-virtual {v0}, Lokhttp3/internal/connection/Exchange;->j()Lokhttp3/internal/connection/ExchangeFinder;
move-result-object v0
invoke-virtual {p1}, Lokhttp3/Request;->k()Lokhttp3/HttpUrl;
move-result-object v5
invoke-virtual {v0, v5}, Lokhttp3/internal/connection/ExchangeFinder;->h(Lokhttp3/HttpUrl;)Z
move-result v0
if-eqz v0, :cond_62
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->a:I
if-ne v0, v3, :cond_37
const/4 v0, 0x1
goto :goto_38
:cond_37
const/4 v0, 0x0
:goto_38
if-eqz v0, :cond_3b
goto :goto_8b
:cond_3b
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->c:Ljava/util/List;
iget v2, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
sub-int/2addr v2, v3
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/Interceptor;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
throw v0
:cond_62
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->c:Ljava/util/List;
iget v1, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
sub-int/2addr v1, v3
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/Interceptor;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, " must retain the same host and port"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
throw v0
:cond_8b
:goto_8b
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->d: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
invoke-static/range {v5 .. v13}, Lokhttp3/internal/http/RealInterceptorChain;->d(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;->c:Ljava/util/List;
iget v5, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/Interceptor;
invoke-interface {v0, p1}, Lokhttp3/Interceptor;->a(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
move-result-object v5
const-string v6, "interceptor "
if-eqz v5, :cond_10c
iget-object v7, p0, Lokhttp3/internal/http/RealInterceptorChain;->e:Lokhttp3/internal/connection/Exchange;
if-eqz v7, :cond_e4
iget v7, p0, Lokhttp3/internal/http/RealInterceptorChain;->d:I
add-int/2addr v7, v3
iget-object v8, p0, Lokhttp3/internal/http/RealInterceptorChain;->c:Ljava/util/List;
invoke-interface {v8}, Ljava/util/List;->size()I
move-result v8
if-ge v7, v8, :cond_c4
iget p1, p1, Lokhttp3/internal/http/RealInterceptorChain;->a:I
if-ne p1, v3, :cond_c2
goto :goto_c4
:cond_c2
const/4 p1, 0x0
goto :goto_c5
:cond_c4
:goto_c4
const/4 p1, 0x1
:goto_c5
if-eqz p1, :cond_c8
goto :goto_e4
:cond_c8
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
throw v0
:cond_e4
:goto_e4
invoke-virtual {v5}, Lokhttp3/Response;->a()Lokhttp3/ResponseBody;
move-result-object p1
if-eqz p1, :cond_eb
const/4 v2, 0x1
:cond_eb
if-eqz v2, :cond_ee
return-object v5
:cond_ee
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, " returned a response with no body"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
throw v0
:cond_10c
new-instance p1, Ljava/lang/NullPointerException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, " returned null"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_126
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Check failed."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public b(ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain;
.registers 14
const-string v0, "unit"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;Ljava/lang/String;)V
int-to-long v0, p1
const-string p1, "readTimeout"
invoke-static {p1, v0, v1, p2}, Lokhttp3/internal/Util;->h(Ljava/lang/String;JLjava/util/concurrent/TimeUnit;)I
move-result v7
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v8, 0x0
const/16 v9, 0x2f
const/4 v10, 0x0
move-object v2, p0
invoke-static/range {v2 .. v10}, Lokhttp3/internal/http/RealInterceptorChain;->d(Lokhttp3/internal/http/RealInterceptorChain;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;IIIILjava/lang/Object;)Lokhttp3/internal/http/RealInterceptorChain;
move-result-object p1
return-object p1
.end method
.method public final c(ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)Lokhttp3/internal/http/RealInterceptorChain;
.registers 18
move-object v0, p0
const-string v1, "request"
move-object v7, p3
invoke-static {p3, v1}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v1, Lokhttp3/internal/http/RealInterceptorChain;
iget-object v3, v0, Lokhttp3/internal/http/RealInterceptorChain;->b:Lokhttp3/internal/connection/RealCall;
iget-object v4, v0, Lokhttp3/internal/http/RealInterceptorChain;->c: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 call()Lokhttp3/Call;
.registers 2
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->b:Lokhttp3/internal/connection/RealCall;
return-object v0
.end method
.method public final e()Lokhttp3/internal/connection/RealCall;
.registers 2
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->b:Lokhttp3/internal/connection/RealCall;
return-object v0
.end method
.method public final f()I
.registers 2
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->g:I
return v0
.end method
.method public final g()Lokhttp3/internal/connection/Exchange;
.registers 2
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->e:Lokhttp3/internal/connection/Exchange;
return-object v0
.end method
.method public final h()I
.registers 2
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->h:I
return v0
.end method
.method public final i()Lokhttp3/Request;
.registers 2
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->f:Lokhttp3/Request;
return-object v0
.end method
.method public final j()I
.registers 2
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->i:I
return v0
.end method
.method public k()I
.registers 2
iget v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->h:I
return v0
.end method
.method public request()Lokhttp3/Request;
.registers 2
iget-object v0, p0, Lokhttp3/internal/http/RealInterceptorChain;->f:Lokhttp3/Request;
return-object v0
.end method