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.
324 lines
8.1 KiB
324 lines
8.1 KiB
2 years ago
|
.class final Lokhttp3/RealCall$AsyncCall;
|
||
|
.super Lokhttp3/internal/NamedRunnable;
|
||
|
.source "RealCall.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lokhttp3/RealCall;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x10
|
||
|
name = "AsyncCall"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final forWebSocket:Z
|
||
|
|
||
|
.field private final responseCallback:Lokhttp3/Callback;
|
||
|
|
||
|
.field final synthetic this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>(Lokhttp3/RealCall;Lokhttp3/Callback;Z)V
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
.line 98
|
||
|
iput-object p1, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
.line 99
|
||
|
const-string v0, "OkHttp %s"
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
new-array v1, v1, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
iget-object v3, p1, Lokhttp3/RealCall;->originalRequest:Lokhttp3/Request;
|
||
|
|
||
|
invoke-virtual {v3}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3}, Lokhttp3/HttpUrl;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
aput-object v3, v1, v2
|
||
|
|
||
|
invoke-direct {p0, v0, v1}, Lokhttp3/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
.line 100
|
||
|
iput-object p2, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback;
|
||
|
|
||
|
.line 101
|
||
|
iput-boolean p3, p0, Lokhttp3/RealCall$AsyncCall;->forWebSocket:Z
|
||
|
|
||
|
.line 102
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method synthetic constructor <init>(Lokhttp3/RealCall;Lokhttp3/Callback;ZLokhttp3/RealCall$1;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 94
|
||
|
invoke-direct {p0, p1, p2, p3}, Lokhttp3/RealCall$AsyncCall;-><init>(Lokhttp3/RealCall;Lokhttp3/Callback;Z)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method cancel()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 117
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/RealCall;->cancel()V
|
||
|
|
||
|
.line 118
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method protected execute()V
|
||
|
.locals 5
|
||
|
|
||
|
.prologue
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
.line 125
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
.line 127
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget-boolean v3, p0, Lokhttp3/RealCall$AsyncCall;->forWebSocket:Z
|
||
|
|
||
|
invoke-static {v0, v3}, Lokhttp3/RealCall;->access$100(Lokhttp3/RealCall;Z)Lokhttp3/Response;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 128
|
||
|
iget-object v3, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget-boolean v2, v3, Lokhttp3/RealCall;->canceled:Z
|
||
|
:try_end_0
|
||
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
.line 130
|
||
|
:try_start_1
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback;
|
||
|
|
||
|
iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
new-instance v3, Ljava/io/IOException;
|
||
|
|
||
|
const-string v4, "Canceled"
|
||
|
|
||
|
invoke-direct {v3, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v0, v2, v3}, Lokhttp3/Callback;->onFailure(Lokhttp3/Call;Ljava/io/IOException;)V
|
||
|
:try_end_1
|
||
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 143
|
||
|
:goto_0
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-static {v0}, Lokhttp3/RealCall;->access$300(Lokhttp3/RealCall;)Lokhttp3/OkHttpClient;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lokhttp3/Dispatcher;->finished(Lokhttp3/RealCall$AsyncCall;)V
|
||
|
|
||
|
.line 145
|
||
|
:goto_1
|
||
|
return-void
|
||
|
|
||
|
.line 133
|
||
|
:cond_0
|
||
|
:try_start_2
|
||
|
iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback;
|
||
|
|
||
|
iget-object v3, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-interface {v2, v3, v0}, Lokhttp3/Callback;->onResponse(Lokhttp3/Call;Lokhttp3/Response;)V
|
||
|
:try_end_2
|
||
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 135
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
.line 136
|
||
|
:goto_2
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
.line 138
|
||
|
:try_start_3
|
||
|
sget-object v1, Lokhttp3/internal/Internal;->logger:Ljava/util/logging/Logger;
|
||
|
|
||
|
sget-object v2, Ljava/util/logging/Level;->INFO:Ljava/util/logging/Level;
|
||
|
|
||
|
new-instance v3, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v4, "Callback failure for "
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
iget-object v4, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-static {v4}, Lokhttp3/RealCall;->access$200(Lokhttp3/RealCall;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-virtual {v1, v2, v3, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||
|
|
||
|
.line 143
|
||
|
:goto_3
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-static {v0}, Lokhttp3/RealCall;->access$300(Lokhttp3/RealCall;)Lokhttp3/OkHttpClient;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lokhttp3/Dispatcher;->finished(Lokhttp3/RealCall$AsyncCall;)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 140
|
||
|
:cond_1
|
||
|
:try_start_4
|
||
|
iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback;
|
||
|
|
||
|
iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-interface {v1, v2, v0}, Lokhttp3/Callback;->onFailure(Lokhttp3/Call;Ljava/io/IOException;)V
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
.line 143
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
invoke-static {v1}, Lokhttp3/RealCall;->access$300(Lokhttp3/RealCall;)Lokhttp3/OkHttpClient;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->finished(Lokhttp3/RealCall$AsyncCall;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
.line 135
|
||
|
:catch_1
|
||
|
move-exception v0
|
||
|
|
||
|
move v1, v2
|
||
|
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method get()Lokhttp3/RealCall;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 121
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method host()Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 105
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget-object v0, v0, Lokhttp3/RealCall;->originalRequest:Lokhttp3/Request;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method request()Lokhttp3/Request;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 109
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget-object v0, v0, Lokhttp3/RealCall;->originalRequest:Lokhttp3/Request;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method tag()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 113
|
||
|
iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall;
|
||
|
|
||
|
iget-object v0, v0, Lokhttp3/RealCall;->originalRequest:Lokhttp3/Request;
|
||
|
|
||
|
invoke-virtual {v0}, Lokhttp3/Request;->tag()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|