Weather/smali_classes4/okhttp3/RealCall.smali
2021-05-10 10:13:34 +02:00

514 lines
12 KiB
Smali

.class final Lokhttp3/RealCall;
.super Ljava/lang/Object;
.source "RealCall.java"
# interfaces
.implements Lokhttp3/Call;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/RealCall$AsyncCall;
}
.end annotation
# instance fields
.field final a:Lokhttp3/OkHttpClient;
.field final b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
.field final c:Lokhttp3/Request;
.field final d:Z
.field private e:Z
# direct methods
.method constructor <init>(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V
.locals 0
.line 44
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 45
iput-object p1, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
.line 46
iput-object p2, p0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
.line 47
iput-boolean p3, p0, Lokhttp3/RealCall;->d:Z
.line 48
new-instance p2, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-direct {p2, p1, p3}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;-><init>(Lokhttp3/OkHttpClient;Z)V
iput-object p2, p0, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
return-void
.end method
.method private j()V
.locals 2
.line 72
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
move-result-object v0
const-string v1, "response.body().close()"
invoke-virtual {v0, v1}, Lokhttp3/internal/platform/Platform;->a(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
.line 73
iget-object v1, p0, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-virtual {v1, v0}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;->a(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public a()Lokhttp3/Request;
.locals 1
.line 52
iget-object v0, p0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
return-object v0
.end method
.method public a(Lokhttp3/Callback;)V
.locals 2
.line 77
monitor-enter p0
.line 78
:try_start_0
iget-boolean v0, p0, Lokhttp3/RealCall;->e:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 79
iput-boolean v0, p0, Lokhttp3/RealCall;->e:Z
.line 80
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 81
invoke-direct {p0}, Lokhttp3/RealCall;->j()V
.line 82
iget-object v0, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->t()Lokhttp3/Dispatcher;
move-result-object v0
new-instance v1, Lokhttp3/RealCall$AsyncCall;
invoke-direct {v1, p0, p1}, Lokhttp3/RealCall$AsyncCall;-><init>(Lokhttp3/RealCall;Lokhttp3/Callback;)V
invoke-virtual {v0, v1}, Lokhttp3/Dispatcher;->a(Lokhttp3/RealCall$AsyncCall;)V
return-void
.line 78
:cond_0
:try_start_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Already Executed"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_0
move-exception p1
.line 80
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public b()Lokhttp3/Response;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 56
monitor-enter p0
.line 57
:try_start_0
iget-boolean v0, p0, Lokhttp3/RealCall;->e:Z
if-nez v0, :cond_1
const/4 v0, 0x1
.line 58
iput-boolean v0, p0, Lokhttp3/RealCall;->e:Z
.line 59
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 60
invoke-direct {p0}, Lokhttp3/RealCall;->j()V
.line 62
:try_start_1
iget-object v0, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->t()Lokhttp3/Dispatcher;
move-result-object v0
invoke-virtual {v0, p0}, Lokhttp3/Dispatcher;->a(Lokhttp3/RealCall;)V
.line 63
invoke-virtual {p0}, Lokhttp3/RealCall;->i()Lokhttp3/Response;
move-result-object v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v0, :cond_0
.line 67
iget-object v1, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->t()Lokhttp3/Dispatcher;
move-result-object v1
invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->b(Lokhttp3/RealCall;)V
return-object v0
.line 64
:cond_0
:try_start_2
new-instance v0, Ljava/io/IOException;
const-string v1, "Canceled"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception v0
.line 67
iget-object v1, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->t()Lokhttp3/Dispatcher;
move-result-object v1
invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->b(Lokhttp3/RealCall;)V
throw v0
.line 57
:cond_1
:try_start_3
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Already Executed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_1
move-exception v0
.line 59
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
throw v0
.end method
.method public c()V
.locals 1
.line 86
iget-object v0, p0, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-virtual {v0}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;->a()V
return-void
.end method
.method public synthetic clone()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
.line 33
invoke-virtual {p0}, Lokhttp3/RealCall;->e()Lokhttp3/RealCall;
move-result-object v0
return-object v0
.end method
.method public d()Z
.locals 1
.line 94
iget-object v0, p0, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-virtual {v0}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;->b()Z
move-result v0
return v0
.end method
.method public e()Lokhttp3/RealCall;
.locals 4
.line 99
new-instance v0, Lokhttp3/RealCall;
iget-object v1, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
iget-object v2, p0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
iget-boolean v3, p0, Lokhttp3/RealCall;->d:Z
invoke-direct {v0, v1, v2, v3}, Lokhttp3/RealCall;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V
return-object v0
.end method
.method f()Lokhttp3/internal/connection/StreamAllocation;
.locals 1
.line 103
iget-object v0, p0, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-virtual {v0}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;->c()Lokhttp3/internal/connection/StreamAllocation;
move-result-object v0
return-object v0
.end method
.method g()Ljava/lang/String;
.locals 2
.line 155
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Lokhttp3/RealCall;->d()Z
move-result v1
if-eqz v1, :cond_0
const-string v1, "canceled "
goto :goto_0
:cond_0
const-string v1, ""
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-boolean v1, p0, Lokhttp3/RealCall;->d:Z
if-eqz v1, :cond_1
const-string v1, "web socket"
goto :goto_1
:cond_1
const-string v1, "call"
:goto_1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " to "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 157
invoke-virtual {p0}, Lokhttp3/RealCall;->h()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method h()Ljava/lang/String;
.locals 1
.line 161
iget-object v0, p0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
invoke-virtual {v0}, Lokhttp3/Request;->a()Lokhttp3/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl;->n()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method i()Lokhttp3/Response;
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 166
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.line 167
iget-object v0, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->w()Ljava/util/List;
move-result-object v0
invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 168
iget-object v0, p0, Lokhttp3/RealCall;->b:Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 169
new-instance v0, Lokhttp3/internal/http/BridgeInterceptor;
iget-object v2, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->f()Lokhttp3/CookieJar;
move-result-object v2
invoke-direct {v0, v2}, Lokhttp3/internal/http/BridgeInterceptor;-><init>(Lokhttp3/CookieJar;)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 170
new-instance v0, Lokhttp3/internal/cache/CacheInterceptor;
iget-object v2, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->h()Lokhttp3/internal/cache/InternalCache;
move-result-object v2
invoke-direct {v0, v2}, Lokhttp3/internal/cache/CacheInterceptor;-><init>(Lokhttp3/internal/cache/InternalCache;)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 171
new-instance v0, Lokhttp3/internal/connection/ConnectInterceptor;
iget-object v2, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-direct {v0, v2}, Lokhttp3/internal/connection/ConnectInterceptor;-><init>(Lokhttp3/OkHttpClient;)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 172
iget-boolean v0, p0, Lokhttp3/RealCall;->d:Z
if-nez v0, :cond_0
.line 173
iget-object v0, p0, Lokhttp3/RealCall;->a:Lokhttp3/OkHttpClient;
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->x()Ljava/util/List;
move-result-object v0
invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
.line 175
:cond_0
new-instance v0, Lokhttp3/internal/http/CallServerInterceptor;
iget-boolean v2, p0, Lokhttp3/RealCall;->d:Z
invoke-direct {v0, v2}, Lokhttp3/internal/http/CallServerInterceptor;-><init>(Z)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 177
new-instance v7, Lokhttp3/internal/http/RealInterceptorChain;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
iget-object v6, p0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
move-object v0, v7
invoke-direct/range {v0 .. v6}, Lokhttp3/internal/http/RealInterceptorChain;-><init>(Ljava/util/List;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http/HttpCodec;Lokhttp3/Connection;ILokhttp3/Request;)V
.line 179
iget-object v0, p0, Lokhttp3/RealCall;->c:Lokhttp3/Request;
invoke-interface {v7, v0}, Lokhttp3/Interceptor$Chain;->a(Lokhttp3/Request;)Lokhttp3/Response;
move-result-object v0
return-object v0
.end method