270 lines
5.6 KiB
Smali
270 lines
5.6 KiB
Smali
.class public final Lokhttp3/Response;
|
|
.super Ljava/lang/Object;
|
|
.source "Response.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/Response$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Ln0/a0;
|
|
|
|
.field public final e:Ln0/y;
|
|
|
|
.field public final f:Ljava/lang/String;
|
|
|
|
.field public final g:I
|
|
|
|
.field public final h:Ln0/v;
|
|
|
|
.field public final i:Lokhttp3/Headers;
|
|
|
|
.field public final j:Lokhttp3/ResponseBody;
|
|
|
|
.field public final k:Lokhttp3/Response;
|
|
|
|
.field public final l:Lokhttp3/Response;
|
|
|
|
.field public final m:Lokhttp3/Response;
|
|
|
|
.field public final n:J
|
|
|
|
.field public final o:J
|
|
|
|
.field public final p:Ln0/g0/d/c;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <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
|
|
.locals 6
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p3
|
|
|
|
move-object v4, p6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->d:Ln0/a0;
|
|
|
|
iput-object v2, v0, Lokhttp3/Response;->e:Ln0/y;
|
|
|
|
iput-object v3, v0, Lokhttp3/Response;->f:Ljava/lang/String;
|
|
|
|
move v1, p4
|
|
|
|
iput v1, v0, Lokhttp3/Response;->g:I
|
|
|
|
move-object v1, p5
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->h:Ln0/v;
|
|
|
|
iput-object v4, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
|
|
|
|
move-object v1, p7
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
|
|
|
move-object v1, p8
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->k:Lokhttp3/Response;
|
|
|
|
move-object v1, p9
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->l:Lokhttp3/Response;
|
|
|
|
move-object/from16 v1, p10
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->m:Lokhttp3/Response;
|
|
|
|
move-wide/from16 v1, p11
|
|
|
|
iput-wide v1, v0, Lokhttp3/Response;->n:J
|
|
|
|
move-wide/from16 v1, p13
|
|
|
|
iput-wide v1, v0, Lokhttp3/Response;->o:J
|
|
|
|
move-object/from16 v1, p15
|
|
|
|
iput-object v1, v0, Lokhttp3/Response;->p:Ln0/g0/d/c;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "headers"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
|
|
:cond_1
|
|
const-string v1, "message"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
|
|
:cond_2
|
|
const-string v1, "protocol"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
|
|
:cond_3
|
|
const-string v1, "request"
|
|
|
|
invoke-static {v1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v5
|
|
.end method
|
|
|
|
.method public static a(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
and-int/lit8 p2, p3, 0x2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iget-object p0, p0, Lokhttp3/Response;->i:Lokhttp3/Headers;
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
move-object p2, p0
|
|
|
|
:cond_0
|
|
return-object p2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Lokhttp3/Response;->g:I
|
|
|
|
const/16 v1, 0xc8
|
|
|
|
if-le v1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v1, 0x12b
|
|
|
|
if-lt v1, v0, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "response is not eligible for a body and must not be closed"
|
|
|
|
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
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "Response{protocol="
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lokhttp3/Response;->e:Ln0/y;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", code="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lokhttp3/Response;->g:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", message="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/Response;->f:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", url="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/Response;->d:Ln0/a0;
|
|
|
|
iget-object v1, v1, Ln0/a0;->b:Ln0/w;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x7d
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|