114 lines
2.2 KiB
Smali
114 lines
2.2 KiB
Smali
.class public Luf/c;
|
|
.super Ljava/lang/Object;
|
|
.source "PlainConnectionSocketFactory.java"
|
|
|
|
# interfaces
|
|
.implements Luf/a;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcz/msebera/android/httpclient/annotation/Immutable;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Luf/c;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Luf/c;
|
|
|
|
invoke-direct {v0}, Luf/c;-><init>()V
|
|
|
|
sput-object v0, Luf/c;->a:Luf/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()Luf/c;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Luf/c;->a:Luf/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public c(ILjava/net/Socket;Lcz/msebera/android/httpclient/HttpHost;Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;Lpg/g;)Ljava/net/Socket;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1
|
|
:cond_0
|
|
invoke-virtual {p0, p6}, Luf/c;->h(Lpg/g;)Ljava/net/Socket;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_0
|
|
if-eqz p5, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p5}, Ljava/net/Socket;->bind(Ljava/net/SocketAddress;)V
|
|
|
|
.line 3
|
|
:cond_1
|
|
:try_start_0
|
|
invoke-virtual {p2, p4, p1}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p2
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 4
|
|
:try_start_1
|
|
invoke-virtual {p2}, Ljava/net/Socket;->close()V
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 5
|
|
:catch_1
|
|
throw p1
|
|
.end method
|
|
|
|
.method public h(Lpg/g;)Ljava/net/Socket;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/net/Socket;
|
|
|
|
invoke-direct {p1}, Ljava/net/Socket;-><init>()V
|
|
|
|
return-object p1
|
|
.end method
|