290 lines
6.8 KiB
Smali
290 lines
6.8 KiB
Smali
.class public final Lokhttp3/Response;
|
|
.super Ljava/lang/Object;
|
|
.source "Response.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/Response$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final buD:Lokhttp3/Headers;
|
|
|
|
.field final bvA:Lokhttp3/Response;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final bvB:Lokhttp3/Response;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final bvC:J
|
|
|
|
.field public final bvD:J
|
|
|
|
.field private volatile bvn:Lokhttp3/d;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final bvv:Lokhttp3/w;
|
|
|
|
.field final bvw:Lokhttp3/u;
|
|
|
|
.field public final bvx:Lokhttp3/r;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final bvy:Lokhttp3/x;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bvz:Lokhttp3/Response;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final code:I
|
|
|
|
.field public final message:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lokhttp3/Response$a;)V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvv:Lokhttp3/w;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvv:Lokhttp3/w;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvw:Lokhttp3/u;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvw:Lokhttp3/u;
|
|
|
|
iget v0, p1, Lokhttp3/Response$a;->code:I
|
|
|
|
iput v0, p0, Lokhttp3/Response;->code:I
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->message:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->message:Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvx:Lokhttp3/r;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvx:Lokhttp3/r;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvo:Lokhttp3/Headers$a;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Headers$a;->Gp()Lokhttp3/Headers;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->buD:Lokhttp3/Headers;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvy:Lokhttp3/x;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvy:Lokhttp3/x;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvz:Lokhttp3/Response;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvz:Lokhttp3/Response;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvA:Lokhttp3/Response;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvA:Lokhttp3/Response;
|
|
|
|
iget-object v0, p1, Lokhttp3/Response$a;->bvB:Lokhttp3/Response;
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvB:Lokhttp3/Response;
|
|
|
|
iget-wide v0, p1, Lokhttp3/Response$a;->bvC:J
|
|
|
|
iput-wide v0, p0, Lokhttp3/Response;->bvC:J
|
|
|
|
iget-wide v0, p1, Lokhttp3/Response$a;->bvD:J
|
|
|
|
iput-wide v0, p0, Lokhttp3/Response;->bvD:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final GA()Lokhttp3/w;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/Response;->bvv:Lokhttp3/w;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final GO()Lokhttp3/d;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/Response;->bvn:Lokhttp3/d;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/Response;->buD:Lokhttp3/Headers;
|
|
|
|
invoke-static {v0}, Lokhttp3/d;->a(Lokhttp3/Headers;)Lokhttp3/d;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/Response;->bvn:Lokhttp3/d;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final GQ()Lokhttp3/Response$a;
|
|
.locals 1
|
|
|
|
new-instance v0, Lokhttp3/Response$a;
|
|
|
|
invoke-direct {v0, p0}, Lokhttp3/Response$a;-><init>(Lokhttp3/Response;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lokhttp3/Response;->bvy:Lokhttp3/x;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/x;->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-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final dI(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/Response;->em(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final em(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lokhttp3/Response;->buD:Lokhttp3/Headers;
|
|
|
|
invoke-virtual {v0, p1}, Lokhttp3/Headers;->get(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Response{protocol="
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lokhttp3/Response;->bvw:Lokhttp3/u;
|
|
|
|
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;->code: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;->message: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;->bvv:Lokhttp3/w;
|
|
|
|
iget-object v1, v1, Lokhttp3/w;->bqk:Lokhttp3/s;
|
|
|
|
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
|
|
|
|
.method public final zS()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Lokhttp3/Response;->code:I
|
|
|
|
const/16 v1, 0xc8
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/16 v1, 0x12c
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|