d.smali
.class public abstract Lcom/baidu/techain/t/d;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/baidu/techain/t/d$a;
}
.end annotation
# direct methods
.method public static a(Ljava/lang/String;Ljava/lang/String;)Lcom/baidu/techain/t/e;
.registers 13
const/4 v3, 0x0
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_11
new-instance v0, Lcom/baidu/techain/t/e;
const/16 v1, -0x64
const-string v2, ""
invoke-direct {v0, v1, v2}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
:cond_10
:goto_10
return-object v0
:cond_11
if-nez p1, :cond_15
const-string p1, ""
:cond_15
const/16 v1, -0x66
:try_start_17
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
const-string v2, "POST"
const/4 v4, 0x0
invoke-static {p0, v0, v2, v4}, Lcom/baidu/techain/t/d;->a(Ljava/lang/String;ILjava/lang/String;Ljava/util/Map;)Ljava/net/HttpURLConnection;
:try_end_21
.catch Lcom/baidu/techain/t/d$a; {:try_start_17 .. :try_end_21} :catch_66
.catch Ljava/io/IOException; {:try_start_17 .. :try_end_21} :catch_78
.catchall {:try_start_17 .. :try_end_21} :catchall_bd
move-result-object v2
:try_start_22
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;
:try_end_25
.catch Ljava/io/IOException; {:try_start_22 .. :try_end_25} :catch_f7
.catchall {:try_start_22 .. :try_end_25} :catchall_ea
move-result-object v4
:try_start_26
new-instance v5, Ljava/io/BufferedWriter;
new-instance v0, Ljava/io/OutputStreamWriter;
const-string v6, "UTF-8"
invoke-direct {v0, v4, v6}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/lang/String;)V
invoke-direct {v5, v0}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
:try_end_32
.catch Ljava/io/IOException; {:try_start_26 .. :try_end_32} :catch_fa
.catchall {:try_start_26 .. :try_end_32} :catchall_ed
:try_start_32
invoke-virtual {v5, p1}, Ljava/io/BufferedWriter;->write(Ljava/lang/String;)V
invoke-virtual {v5}, Ljava/io/BufferedWriter;->flush()V
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->getResponseCode()I
move-result v1
invoke-static {v2}, Lcom/baidu/techain/t/d;->a(Ljava/net/HttpURLConnection;)Ljava/lang/String;
move-result-object v3
new-instance v0, Lcom/baidu/techain/t/e;
invoke-direct {v0, v1, v3}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
const-string v3, "HiAnalytics"
const-string v6, "PostRequest(String) resultCode: %d"
const/4 v7, 0x1
new-array v7, v7, [Ljava/lang/Object;
const/4 v8, 0x0
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v9
aput-object v9, v7, v8
invoke-static {v3, v6, v7}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_56
.catch Ljava/io/IOException; {:try_start_32 .. :try_end_56} :catch_100
.catchall {:try_start_32 .. :try_end_56} :catchall_ef
:try_start_56
invoke-virtual {v5}, Ljava/io/BufferedWriter;->close()V
:try_end_59
.catch Ljava/io/IOException; {:try_start_56 .. :try_end_59} :catch_9c
:goto_59
if-eqz v2, :cond_10
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
const-string v1, "HttpClient"
const-string v2, "disconnect"
invoke-static {v1, v2}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_10
:catch_66
move-exception v0
:try_start_67
const-string v0, "HttpClient"
const-string v2, "sendPostRequest(String): SSLConfigException"
invoke-static {v0, v2}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/baidu/techain/t/e;
const/16 v2, -0x65
const-string v4, ""
invoke-direct {v0, v2, v4}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
:try_end_77
.catch Ljava/io/IOException; {:try_start_67 .. :try_end_77} :catch_78
.catchall {:try_start_67 .. :try_end_77} :catchall_bd
goto :goto_10
:catch_78
move-exception v0
move-object v2, v3
move-object v4, v3
:goto_7b
:try_start_7b
const-string v0, "HttpClient"
const-string v5, "PostRequest(String): IOException"
invoke-static {v0, v5}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/baidu/techain/t/e;
const-string v5, ""
invoke-direct {v0, v1, v5}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
:try_end_89
.catchall {:try_start_7b .. :try_end_89} :catchall_f2
if-eqz v4, :cond_ae
:try_start_8b
invoke-virtual {v4}, Ljava/io/BufferedWriter;->close()V
:try_end_8e
.catch Ljava/io/IOException; {:try_start_8b .. :try_end_8e} :catch_a5
:cond_8e
:goto_8e
if-eqz v2, :cond_10
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
const-string v1, "HttpClient"
const-string v2, "disconnect"
invoke-static {v1, v2}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;)V
goto/16 :goto_10
:catch_9c
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(String)\'s BufferedWriter close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_59
:catch_a5
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(String)\'s BufferedWriter close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_8e
:cond_ae
if-eqz v3, :cond_8e
:try_start_b0
invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
:try_end_b3
.catch Ljava/io/IOException; {:try_start_b0 .. :try_end_b3} :catch_b4
goto :goto_8e
:catch_b4
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(String)\'s OutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_8e
:catchall_bd
move-exception v0
move-object v2, v3
move-object v4, v3
:goto_c0
if-eqz v3, :cond_db
:try_start_c2
invoke-virtual {v3}, Ljava/io/BufferedWriter;->close()V
:try_end_c5
.catch Ljava/io/IOException; {:try_start_c2 .. :try_end_c5} :catch_d2
:cond_c5
:goto_c5
if-eqz v2, :cond_d1
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
const-string v1, "HttpClient"
const-string v2, "disconnect"
invoke-static {v1, v2}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;)V
:cond_d1
throw v0
:catch_d2
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(String)\'s BufferedWriter close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_c5
:cond_db
if-eqz v4, :cond_c5
:try_start_dd
invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
:try_end_e0
.catch Ljava/io/IOException; {:try_start_dd .. :try_end_e0} :catch_e1
goto :goto_c5
:catch_e1
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(String)\'s OutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_c5
:catchall_ea
move-exception v0
move-object v4, v3
goto :goto_c0
:catchall_ed
move-exception v0
goto :goto_c0
:catchall_ef
move-exception v0
move-object v3, v5
goto :goto_c0
:catchall_f2
move-exception v0
move-object v10, v3
move-object v3, v4
move-object v4, v10
goto :goto_c0
:catch_f7
move-exception v0
move-object v4, v3
goto :goto_7b
:catch_fa
move-exception v0
move-object v10, v4
move-object v4, v3
move-object v3, v10
goto/16 :goto_7b
:catch_100
move-exception v0
move-object v3, v4
move-object v4, v5
goto/16 :goto_7b
.end method
.method public static a(Ljava/lang/String;[BLjava/util/Map;)Lcom/baidu/techain/t/e;
.registers 14
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"[B",
"Ljava/util/Map",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Lcom/baidu/techain/t/e;"
}
.end annotation
const/4 v1, 0x0
const/4 v3, 0x0
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_12
new-instance v0, Lcom/baidu/techain/t/e;
const/16 v1, -0x64
const-string v2, ""
invoke-direct {v0, v1, v2}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
:cond_11
:goto_11
return-object v0
:cond_12
if-nez p1, :cond_16
new-array p1, v1, [B
:cond_16
const/16 v1, -0x66
:try_start_18
array-length v0, p1
const-string v2, "POST"
invoke-static {p0, v0, v2, p2}, Lcom/baidu/techain/t/d;->a(Ljava/lang/String;ILjava/lang/String;Ljava/util/Map;)Ljava/net/HttpURLConnection;
:try_end_1e
.catch Lcom/baidu/techain/t/d$a; {:try_start_18 .. :try_end_1e} :catch_5c
.catch Ljava/io/IOException; {:try_start_18 .. :try_end_1e} :catch_6e
.catchall {:try_start_18 .. :try_end_1e} :catchall_b2
move-result-object v2
:try_start_1f
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;
:try_end_22
.catch Ljava/io/IOException; {:try_start_1f .. :try_end_22} :catch_ec
.catchall {:try_start_1f .. :try_end_22} :catchall_df
move-result-object v4
:try_start_23
new-instance v5, Ljava/io/BufferedOutputStream;
invoke-direct {v5, v4}, Ljava/io/BufferedOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_28
.catch Ljava/io/IOException; {:try_start_23 .. :try_end_28} :catch_ef
.catchall {:try_start_23 .. :try_end_28} :catchall_e2
:try_start_28
invoke-virtual {v5, p1}, Ljava/io/BufferedOutputStream;->write([B)V
invoke-virtual {v5}, Ljava/io/BufferedOutputStream;->flush()V
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->getResponseCode()I
move-result v1
invoke-static {v2}, Lcom/baidu/techain/t/d;->a(Ljava/net/HttpURLConnection;)Ljava/lang/String;
move-result-object v3
new-instance v0, Lcom/baidu/techain/t/e;
invoke-direct {v0, v1, v3}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
const-string v3, "HiAnalytics"
const-string v6, "PostRequest(byte[]) resultCode: %d"
const/4 v7, 0x1
new-array v7, v7, [Ljava/lang/Object;
const/4 v8, 0x0
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v9
aput-object v9, v7, v8
invoke-static {v3, v6, v7}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_4c
.catch Ljava/io/IOException; {:try_start_28 .. :try_end_4c} :catch_f5
.catchall {:try_start_28 .. :try_end_4c} :catchall_e6
:try_start_4c
invoke-virtual {v5}, Ljava/io/BufferedOutputStream;->close()V
:try_end_4f
.catch Ljava/io/IOException; {:try_start_4c .. :try_end_4f} :catch_91
:goto_4f
if-eqz v2, :cond_11
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
const-string v1, "HttpClient"
const-string v2, "disconnect"
invoke-static {v1, v2}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_11
:catch_5c
move-exception v0
:try_start_5d
const-string v0, "HttpClient"
const-string v2, "PostRequest(byte[]): SSLConfigException"
invoke-static {v0, v2}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/baidu/techain/t/e;
const/16 v2, -0x65
const-string v4, ""
invoke-direct {v0, v2, v4}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
:try_end_6d
.catch Ljava/io/IOException; {:try_start_5d .. :try_end_6d} :catch_6e
.catchall {:try_start_5d .. :try_end_6d} :catchall_b2
goto :goto_11
:catch_6e
move-exception v0
move-object v2, v3
move-object v4, v3
:goto_71
:try_start_71
const-string v0, "HttpClient"
const-string v5, "PostRequest(byte[]): IOException"
invoke-static {v0, v5}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
new-instance v0, Lcom/baidu/techain/t/e;
const-string v5, ""
invoke-direct {v0, v1, v5}, Lcom/baidu/techain/t/e;-><init>(ILjava/lang/String;)V
:try_end_7f
.catchall {:try_start_71 .. :try_end_7f} :catchall_e9
if-eqz v4, :cond_a3
:try_start_81
invoke-virtual {v4}, Ljava/io/BufferedOutputStream;->close()V
:try_end_84
.catch Ljava/io/IOException; {:try_start_81 .. :try_end_84} :catch_9a
:cond_84
:goto_84
if-eqz v2, :cond_11
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
const-string v1, "HttpClient"
const-string v2, "disconnect"
invoke-static {v1, v2}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_11
:catch_91
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(byte[])\'s BufferedOutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_4f
:catch_9a
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(byte[])\'s BufferedOutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_84
:cond_a3
if-eqz v3, :cond_84
:try_start_a5
invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
:try_end_a8
.catch Ljava/io/IOException; {:try_start_a5 .. :try_end_a8} :catch_a9
goto :goto_84
:catch_a9
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(byte[])\'s OutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_84
:catchall_b2
move-exception v0
move-object v2, v3
move-object v5, v3
:goto_b5
if-eqz v5, :cond_d0
:try_start_b7
invoke-virtual {v5}, Ljava/io/BufferedOutputStream;->close()V
:try_end_ba
.catch Ljava/io/IOException; {:try_start_b7 .. :try_end_ba} :catch_c7
:cond_ba
:goto_ba
if-eqz v2, :cond_c6
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->disconnect()V
const-string v1, "HttpClient"
const-string v2, "disconnect"
invoke-static {v1, v2}, Lcom/baidu/techain/s/b;->a(Ljava/lang/String;Ljava/lang/String;)V
:cond_c6
throw v0
:catch_c7
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(byte[])\'s BufferedOutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_ba
:cond_d0
if-eqz v3, :cond_ba
:try_start_d2
invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
:try_end_d5
.catch Ljava/io/IOException; {:try_start_d2 .. :try_end_d5} :catch_d6
goto :goto_ba
:catch_d6
move-exception v1
const-string v1, "HttpClient"
const-string v3, "When the PostRequest(byte[])\'s OutputStream close: IOException"
invoke-static {v1, v3}, Lcom/baidu/techain/s/b;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_ba
:catchall_df
move-exception v0
move-object v5, v3
goto :goto_b5
:catchall_e2
move-exception v0
move-object v5, v3
move-object v3, v4
goto :goto_b5
:catchall_e6
move-exception v0
move-object v3, v4
goto :goto_b5
:catchall_e9
move-exception v0
move-object v5, v4
goto :goto_b5
:catch_ec
move-exception v0
move-object v4, v3
goto :goto_71
:catch_ef
move-exception v0
move-object v10, v4
move-object v4, v3
move-object v3, v10
goto/16 :goto_71
:catch_f5
move-exception v0
move-object v3, v4
move-object v4, v5
goto/16 :goto_71
.end method
.method private static a(Ljava/net/HttpURLConnection;)Ljava/lang/String;
.registers 8
.prologue
.line 0
const/4 v1, 0x0
:try_start_1
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object v1
.line 2000
new-instance v2, Lcom/baidu/techain/v/b;
const/16 v0, 0x800
invoke-direct {v2, v0}, Lcom/baidu/techain/v/b;-><init>(I)V
const/16 v0, 0x800
new-array v0, v0, [B
:goto_10
invoke-virtual {v1, v0}, Ljava/io/InputStream;->read([B)I
move-result v3
const/4 v4, -0x1
if-eq v3, v4, :cond_37
invoke-virtual {v2, v0, v3}, Lcom/baidu/techain/v/b;->a([BI)V
:try_end_1a
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1a} :catch_1b
.catchall {:try_start_1 .. :try_end_1a} :catchall_32
goto :goto_10
.line 0
:catch_1b
move-exception v0
:try_start_1c
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->getResponseCode()I
move-result v2
const-string v3, "HttpClient"
const-string v4, "When Response Content From Connection happend IOException,the ResponseCode is %d "
const/4 v5, 0x1
new-array v5, v5, [Ljava/lang/Object;
const/4 v6, 0x0
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v5, v6
invoke-static {v3, v4, v5}, Lcom/baidu/techain/s/b;->b(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
throw v0
:try_end_32
.catchall {:try_start_1c .. :try_end_32} :catchall_32
:catchall_32
move-exception v0
invoke-static {v1}, Lcom/baidu/techain/v/j;->a(Ljava/io/InputStream;)V
throw v0
.line 3000
:cond_37
:try_start_37
iget v0, v2, Lcom/baidu/techain/v/b;->a:I
.line 2000
if-nez v0, :cond_41
const-string v0, ""
:try_end_3d
.catch Ljava/io/IOException; {:try_start_37 .. :try_end_3d} :catch_1b
.catchall {:try_start_37 .. :try_end_3d} :catchall_32
.line 0
:goto_3d
invoke-static {v1}, Lcom/baidu/techain/v/j;->a(Ljava/io/InputStream;)V
return-object v0
.line 2000
:cond_41
:try_start_41
new-instance v0, Ljava/lang/String;
invoke-virtual {v2}, Lcom/baidu/techain/v/b;->a()[B
move-result-object v2
const-string v3, "UTF-8"
invoke-direct {v0, v2, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_4c
.catch Ljava/io/IOException; {:try_start_41 .. :try_end_4c} :catch_1b
.catchall {:try_start_41 .. :try_end_4c} :catchall_32
goto :goto_3d
.end method
.method private static a(Ljava/lang/String;ILjava/lang/String;Ljava/util/Map;)Ljava/net/HttpURLConnection;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"I",
"Ljava/lang/String;",
"Ljava/util/Map",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Ljava/net/HttpURLConnection;"
}
.end annotation
.prologue
.line 0
new-instance v0, Ljava/net/URL;
invoke-direct {v0, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
move-result-object v0
check-cast v0, Ljava/net/HttpURLConnection;
.line 1000
instance-of v1, v0, Ljavax/net/ssl/HttpsURLConnection;
if-eqz v1, :cond_21
move-object v1, v0
check-cast v1, Ljavax/net/ssl/HttpsURLConnection;
invoke-static {}, Lcom/baidu/techain/t/c;->a()Ljavax/net/SocketFactory;
move-result-object v2
if-eqz v2, :cond_71
instance-of v3, v2, Ljavax/net/ssl/SSLSocketFactory;
if-eqz v3, :cond_71
check-cast v2, Ljavax/net/ssl/SSLSocketFactory;
invoke-virtual {v1, v2}, Ljavax/net/ssl/HttpsURLConnection;->setSSLSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)V
.line 0
:cond_21
invoke-virtual {v0, p2}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
const/16 v1, 0x2ee0
invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setDoOutput(Z)V
const-string v1, "Content-Type"
const-string v2, "application/json; charset=UTF-8"
invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
const-string v1, "Content-Length"
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
if-eqz p3, :cond_79
invoke-interface {p3}, Ljava/util/Map;->size()I
move-result v1
if-lez v1, :cond_79
invoke-interface {p3}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v1
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v3
:cond_4d
:goto_4d
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_79
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/Map$Entry;
invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
if-eqz v2, :cond_4d
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-nez v4, :cond_4d
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {v0, v2, v1}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_4d
.line 1000
:cond_71
new-instance v0, Lcom/baidu/techain/t/d$a;
const-string v1, "No ssl socket factory set"
invoke-direct {v0, v1}, Lcom/baidu/techain/t/d$a;-><init>(Ljava/lang/String;)V
throw v0
.line 0
:cond_79
return-object v0
.end method