298 lines
6 KiB
Smali
298 lines
6 KiB
Smali
.class public final Ln0/g0/c/a$a;
|
|
.super Ljava/lang/Object;
|
|
.source "CacheInterceptor.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Ln0/g0/c/a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Ln0/g0/c/a$a;Lokhttp3/Response;)Lokhttp3/Response;
|
|
.locals 20
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v2, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v2, v1
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_7
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
iget-object v4, v0, Lokhttp3/Response;->d:Ln0/a0;
|
|
|
|
iget-object v5, v0, Lokhttp3/Response;->e:Ln0/y;
|
|
|
|
iget v7, v0, Lokhttp3/Response;->g:I
|
|
|
|
iget-object v6, v0, Lokhttp3/Response;->f:Ljava/lang/String;
|
|
|
|
iget-object v8, v0, Lokhttp3/Response;->h:Ln0/v;
|
|
|
|
iget-object v1, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v11, v0, Lokhttp3/Response;->k:Lokhttp3/Response;
|
|
|
|
iget-object v12, v0, Lokhttp3/Response;->l:Lokhttp3/Response;
|
|
|
|
iget-object v13, v0, Lokhttp3/Response;->m:Lokhttp3/Response;
|
|
|
|
iget-wide v14, v0, Lokhttp3/Response;->n:J
|
|
|
|
iget-wide v9, v0, Lokhttp3/Response;->o:J
|
|
|
|
iget-object v0, v0, Lokhttp3/Response;->p:Ln0/g0/d/c;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ltz v7, :cond_1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v3, :cond_5
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v19, Lokhttp3/Response;
|
|
|
|
move-object/from16 v3, v19
|
|
|
|
move-wide/from16 v16, v9
|
|
|
|
move-object v9, v1
|
|
|
|
move-object v10, v2
|
|
|
|
move-object/from16 v18, v0
|
|
|
|
invoke-direct/range {v3 .. v18}, Lokhttp3/Response;-><init>(Ln0/a0;Ln0/y;Ljava/lang/String;ILn0/v;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLn0/g0/d/c;)V
|
|
|
|
move-object/from16 v0, v19
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "message == null"
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "protocol == null"
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "request == null"
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_5
|
|
const-string v0, "code < 0: "
|
|
|
|
invoke-static {v0, v7}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_6
|
|
throw v1
|
|
|
|
:cond_7
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Ljava/lang/String;)Z
|
|
.locals 2
|
|
|
|
const-string v0, "Content-Length"
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, "Content-Encoding"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, "Content-Type"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public final c(Ljava/lang/String;)Z
|
|
.locals 2
|
|
|
|
const-string v0, "Connection"
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Keep-Alive"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Proxy-Authenticate"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Proxy-Authorization"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "TE"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Trailers"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Transfer-Encoding"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Upgrade"
|
|
|
|
invoke-static {v0, p1, v1}, Lj0/t/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|