574 lines
10 KiB
Smali
574 lines
10 KiB
Smali
.class public abstract Lcg/a;
|
|
.super Ljava/lang/Object;
|
|
.source "AbstractHttpClientConnection.java"
|
|
|
|
# interfaces
|
|
.implements Ldf/h;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lhg/c;
|
|
|
|
.field public final b:Lhg/b;
|
|
|
|
.field public c:Llg/h;
|
|
|
|
.field public d:Llg/i;
|
|
|
|
.field public e:Llg/b;
|
|
|
|
.field public f:Llg/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Llg/c<",
|
|
"Ldf/t;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public g:Llg/e;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Llg/e<",
|
|
"Ldf/q;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public h:Lcg/o;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput-object v0, p0, Lcg/a;->c:Llg/h;
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcg/a;->d:Llg/i;
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lcg/a;->e:Llg/b;
|
|
|
|
.line 5
|
|
iput-object v0, p0, Lcg/a;->f:Llg/c;
|
|
|
|
.line 6
|
|
iput-object v0, p0, Lcg/a;->g:Llg/e;
|
|
|
|
.line 7
|
|
iput-object v0, p0, Lcg/a;->h:Lcg/o;
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Lcg/a;->d()Lhg/c;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcg/a;->a:Lhg/c;
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Lcg/a;->c()Lhg/b;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcg/a;->b:Lhg/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public G(Llg/h;Llg/i;Lng/i;)V
|
|
.locals 1
|
|
|
|
const-string v0, "Input session buffer"
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Llg/h;
|
|
|
|
iput-object v0, p0, Lcg/a;->c:Llg/h;
|
|
|
|
const-string v0, "Output session buffer"
|
|
|
|
.line 2
|
|
invoke-static {p2, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Llg/i;
|
|
|
|
iput-object v0, p0, Lcg/a;->d:Llg/i;
|
|
|
|
.line 3
|
|
instance-of v0, p1, Llg/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Llg/b;
|
|
|
|
iput-object v0, p0, Lcg/a;->e:Llg/b;
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcg/a;->f()Ldf/u;
|
|
|
|
move-result-object v0
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1, v0, p3}, Lcg/a;->u(Llg/h;Ldf/u;Lng/i;)Llg/c;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcg/a;->f:Llg/c;
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p2, p3}, Lcg/a;->k(Llg/i;Lng/i;)Llg/e;
|
|
|
|
move-result-object p3
|
|
|
|
iput-object p3, p0, Lcg/a;->g:Llg/e;
|
|
|
|
.line 8
|
|
invoke-interface {p1}, Llg/h;->getMetrics()Llg/g;
|
|
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-interface {p2}, Llg/i;->getMetrics()Llg/g;
|
|
|
|
move-result-object p2
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1, p2}, Lcg/a;->b(Llg/g;Llg/g;)Lcg/o;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcg/a;->h:Lcg/o;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public L()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcg/a;->e:Llg/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Llg/b;->isEof()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public R0(Ldf/m;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcz/msebera/android/httpclient/HttpException;,
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "HTTP request"
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcg/a;->a()V
|
|
|
|
.line 3
|
|
invoke-interface {p1}, Ldf/m;->getEntity()Ldf/l;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v0, p0, Lcg/a;->a:Lhg/c;
|
|
|
|
iget-object v1, p0, Lcg/a;->d:Llg/i;
|
|
|
|
.line 5
|
|
invoke-interface {p1}, Ldf/m;->getEntity()Ldf/l;
|
|
|
|
move-result-object v2
|
|
|
|
.line 6
|
|
invoke-virtual {v0, v1, p1, v2}, Lhg/c;->b(Llg/i;Ldf/p;Ldf/l;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract a()V
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/IllegalStateException;
|
|
}
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public b(Llg/g;Llg/g;)Lcg/o;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcg/o;
|
|
|
|
invoke-direct {v0, p1, p2}, Lcg/o;-><init>(Llg/g;Llg/g;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c()Lhg/b;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lhg/b;
|
|
|
|
new-instance v1, Lhg/d;
|
|
|
|
invoke-direct {v1}, Lhg/d;-><init>()V
|
|
|
|
invoke-direct {v0, v1}, Lhg/b;-><init>(Lzf/e;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public d()Lhg/c;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lhg/c;
|
|
|
|
new-instance v1, Lhg/e;
|
|
|
|
invoke-direct {v1}, Lhg/e;-><init>()V
|
|
|
|
invoke-direct {v0, v1}, Lhg/c;-><init>(Lzf/e;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public f()Ldf/u;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lcg/l;->b:Lcg/l;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public flush()V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcg/a;->a()V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcg/a;->v()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getMetrics()Ldf/k;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcg/a;->h:Lcg/o;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public isResponseAvailable(I)Z
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcg/a;->a()V
|
|
|
|
.line 2
|
|
:try_start_0
|
|
iget-object v0, p0, Lcg/a;->c:Llg/h;
|
|
|
|
invoke-interface {v0, p1}, Llg/h;->isDataAvailable(I)Z
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return p1
|
|
|
|
:catch_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public isStale()Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-interface {p0}, Ldf/i;->isOpen()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcg/a;->L()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 3
|
|
:cond_1
|
|
:try_start_0
|
|
iget-object v0, p0, Lcg/a;->c:Llg/h;
|
|
|
|
invoke-interface {v0, v1}, Llg/h;->isDataAvailable(I)Z
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lcg/a;->L()Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
return v1
|
|
|
|
:catch_1
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public k(Llg/i;Lng/i;)Llg/e;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Llg/i;",
|
|
"Lng/i;",
|
|
")",
|
|
"Llg/e<",
|
|
"Ldf/q;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljg/r;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p1, v1, p2}, Ljg/r;-><init>(Llg/i;Lmg/p;Lng/i;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public receiveResponseHeader()Ldf/t;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcz/msebera/android/httpclient/HttpException;,
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcg/a;->a()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcg/a;->f:Llg/c;
|
|
|
|
invoke-interface {v0}, Llg/c;->parse()Ldf/p;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ldf/t;
|
|
|
|
.line 3
|
|
invoke-interface {v0}, Ldf/t;->getStatusLine()Ldf/b0;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ldf/b0;->getStatusCode()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0xc8
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lcg/a;->h:Lcg/o;
|
|
|
|
invoke-virtual {v1}, Lcg/o;->b()V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public u(Llg/h;Ldf/u;Lng/i;)Llg/c;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Llg/h;",
|
|
"Ldf/u;",
|
|
"Lng/i;",
|
|
")",
|
|
"Llg/c<",
|
|
"Ldf/t;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljg/m;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p1, v1, p2, p3}, Ljg/m;-><init>(Llg/h;Lmg/q;Ldf/u;Lng/i;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public v()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcg/a;->d:Llg/i;
|
|
|
|
invoke-interface {v0}, Llg/i;->flush()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public y1(Ldf/t;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcz/msebera/android/httpclient/HttpException;,
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "HTTP response"
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcg/a;->a()V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcg/a;->b:Lhg/b;
|
|
|
|
iget-object v1, p0, Lcg/a;->c:Llg/h;
|
|
|
|
invoke-virtual {v0, v1, p1}, Lhg/b;->a(Llg/h;Ldf/p;)Ldf/l;
|
|
|
|
move-result-object v0
|
|
|
|
.line 4
|
|
invoke-interface {p1, v0}, Ldf/t;->b(Ldf/l;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public z(Ldf/q;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcz/msebera/android/httpclient/HttpException;,
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "HTTP request"
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcg/a;->a()V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcg/a;->g:Llg/e;
|
|
|
|
invoke-interface {v0, p1}, Llg/e;->a(Ldf/p;)V
|
|
|
|
.line 4
|
|
iget-object p1, p0, Lcg/a;->h:Lcg/o;
|
|
|
|
invoke-virtual {p1}, Lcg/o;->a()V
|
|
|
|
return-void
|
|
.end method
|