You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
187 lines
4.7 KiB
187 lines
4.7 KiB
2 years ago
|
.class Lokhttp3/RealCall$ApplicationInterceptorChain;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "RealCall.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lokhttp3/Interceptor$Chain;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lokhttp3/RealCall;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = "ApplicationInterceptorChain"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final forWebSocket:Z
|
||
|
|
||
|
.field private final index:I
|
||
|
|
||
|
.field private final request:Lokhttp3/Request;
|
||
|
|
||
|
.field final synthetic this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lokhttp3/RealCall;ILokhttp3/Request;Z)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 168
|
||
|
iput-object p1, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 169
|
||
|
iput p2, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->index:I
|
||
|
|
||
|
.line 170
|
||
|
iput-object p3, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->request:Lokhttp3/Request;
|
||
|
|
||
|
.line 171
|
||
|
iput-boolean p4, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->forWebSocket:Z
|
||
|
|
||
|
.line 172
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public connection()Lokhttp3/Connection;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 175
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public proceed(Lokhttp3/Request;)Lokhttp3/Response;
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
.line 184
|
||
|
iget v0, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->index:I
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-static {v1}, Lokhttp3/RealCall;->access$300(Lokhttp3/RealCall;)Lokhttp3/OkHttpClient;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->interceptors()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-ge v0, v1, :cond_1
|
||
|
|
||
|
.line 185
|
||
|
new-instance v1, Lokhttp3/RealCall$ApplicationInterceptorChain;
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget v2, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->index:I
|
||
|
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
iget-boolean v3, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->forWebSocket:Z
|
||
|
|
||
|
invoke-direct {v1, v0, v2, p1, v3}, Lokhttp3/RealCall$ApplicationInterceptorChain;-><init>(Lokhttp3/RealCall;ILokhttp3/Request;Z)V
|
||
|
|
||
|
.line 186
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-static {v0}, Lokhttp3/RealCall;->access$300(Lokhttp3/RealCall;)Lokhttp3/OkHttpClient;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->interceptors()Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget v2, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->index:I
|
||
|
|
||
|
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lokhttp3/Interceptor;
|
||
|
|
||
|
.line 187
|
||
|
invoke-interface {v0, v1}, Lokhttp3/Interceptor;->intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
.line 189
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
.line 190
|
||
|
new-instance v1, Ljava/lang/NullPointerException;
|
||
|
|
||
|
new-instance v2, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v3, "application interceptor "
|
||
|
|
||
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v2, " returned null"
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-direct {v1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v1
|
||
|
|
||
|
:cond_0
|
||
|
move-object v0, v1
|
||
|
|
||
|
.line 198
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget-boolean v1, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->forWebSocket:Z
|
||
|
|
||
|
invoke-virtual {v0, p1, v1}, Lokhttp3/RealCall;->getResponse(Lokhttp3/Request;Z)Lokhttp3/Response;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method public request()Lokhttp3/Request;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 179
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$ApplicationInterceptorChain;->request:Lokhttp3/Request;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|