e.smali
.class public final Lcom/alibaba/mtl/log/d/e;
.super Ljava/lang/Object;
.source "HttpUtils.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/alibaba/mtl/log/d/e$a;
}
.end annotation
# static fields
.field private static a:Lcom/alibaba/mtl/log/d/w;
.field private static a:Lcom/alibaba/mtl/log/d/x;
# direct methods
.method static constructor <clinit>()V
.registers 2
const-string v0, "http.keepAlive"
const-string v1, "true"
.line 1
invoke-static {v0, v1}, Ljava/lang/System;->setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
const/4 v0, 0x0
.line 2
sput-object v0, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/x;
.line 3
sput-object v0, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/w;
return-void
.end method
.method public static a(ILjava/lang/String;Ljava/util/Map;Z)Lcom/alibaba/mtl/log/d/e$a;
.registers 21
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;Z)",
"Lcom/alibaba/mtl/log/d/e$a;"
}
.end annotation
move/from16 v1, p0
move-object/from16 v2, p2
.line 1
new-instance v3, Lcom/alibaba/mtl/log/d/e$a;
invoke-direct {v3}, Lcom/alibaba/mtl/log/d/e$a;-><init>()V
.line 2
invoke-static/range {p1 .. p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_10
return-object v3
.line 3
:cond_10
invoke-static {}, Lcom/ut/mini/internal/CustomDNS;->instance()Lcom/ut/mini/internal/CustomDNS;
move-result-object v0
move-object/from16 v4, p1
invoke-virtual {v0, v4}, Lcom/ut/mini/internal/CustomDNS;->resolveUrl(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
const/4 v6, 0x1
const/4 v7, 0x0
const/4 v8, 0x2
if-eqz v0, :cond_27
.line 4
array-length v9, v0
if-lt v9, v8, :cond_27
.line 5
aget-object v4, v0, v7
.line 6
aget-object v0, v0, v6
goto :goto_28
:cond_27
const/4 v0, 0x0
.line 7
:goto_28
:try_start_28
new-instance v9, Ljava/net/URL;
invoke-direct {v9, v4}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
.line 8
invoke-virtual {v9}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
move-result-object v4
check-cast v4, Ljava/net/HttpURLConnection;
:try_end_33
.catch Ljava/net/MalformedURLException; {:try_start_28 .. :try_end_33} :catch_2d7
.catch Ljava/io/IOException; {:try_start_28 .. :try_end_33} :catch_2d2
const-string v10, "UtAnalytics"
if-eqz v4, :cond_2c5
.line 9
:try_start_37
instance-of v11, v4, Ljavax/net/ssl/HttpsURLConnection;
if-eqz v11, :cond_98
.line 10
invoke-virtual {v9}, Ljava/net/URL;->getHost()Ljava/lang/String;
move-result-object v9
.line 11
invoke-static {v9}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v11
if-eqz v11, :cond_46
return-object v3
.line 12
:cond_46
sget-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/x;
:try_end_48
.catch Ljava/lang/Throwable; {:try_start_37 .. :try_end_48} :catch_2c4
const-string v12, "UrlWrapper"
if-eqz v11, :cond_58
:try_start_4c
sget-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/x;
invoke-virtual {v11}, Lcom/alibaba/mtl/log/d/x;->getHost()Ljava/lang/String;
move-result-object v11
invoke-virtual {v9, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v11
if-nez v11, :cond_68
.line 13
:cond_58
new-array v11, v6, [Ljava/lang/Object;
const-string v13, "new SslSocketFactory"
aput-object v13, v11, v7
invoke-static {v12, v11}, Lcom/alibaba/mtl/log/d/i;->a(Ljava/lang/String;[Ljava/lang/Object;)V
.line 14
new-instance v11, Lcom/alibaba/mtl/log/d/x;
invoke-direct {v11, v9}, Lcom/alibaba/mtl/log/d/x;-><init>(Ljava/lang/String;)V
sput-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/x;
.line 15
:cond_68
move-object v11, v4
check-cast v11, Ljavax/net/ssl/HttpsURLConnection;
sget-object v13, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/x;
invoke-virtual {v11, v13}, Ljavax/net/ssl/HttpsURLConnection;->setSSLSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)V
.line 16
sget-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/w;
if-eqz v11, :cond_80
sget-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/w;
invoke-virtual {v11}, Lcom/alibaba/mtl/log/d/w;->getHost()Ljava/lang/String;
move-result-object v11
invoke-virtual {v9, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v11
if-nez v11, :cond_90
.line 17
:cond_80
new-array v11, v6, [Ljava/lang/Object;
const-string v13, "new HostnameVerifier"
aput-object v13, v11, v7
invoke-static {v12, v11}, Lcom/alibaba/mtl/log/d/i;->a(Ljava/lang/String;[Ljava/lang/Object;)V
.line 18
new-instance v11, Lcom/alibaba/mtl/log/d/w;
invoke-direct {v11, v9}, Lcom/alibaba/mtl/log/d/w;-><init>(Ljava/lang/String;)V
sput-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/w;
.line 19
:cond_90
move-object v9, v4
check-cast v9, Ljavax/net/ssl/HttpsURLConnection;
sget-object v11, Lcom/alibaba/mtl/log/d/e;->a:Lcom/alibaba/mtl/log/d/w;
invoke-virtual {v9, v11}, Ljavax/net/ssl/HttpsURLConnection;->setHostnameVerifier(Ljavax/net/ssl/HostnameVerifier;)V
:try_end_98
.catch Ljava/lang/Throwable; {:try_start_4c .. :try_end_98} :catch_2c4
:cond_98
const/4 v9, 0x3
if-eq v1, v8, :cond_9d
if-ne v1, v9, :cond_a0
.line 20
:cond_9d
invoke-virtual {v4, v6}, Ljava/net/HttpURLConnection;->setDoOutput(Z)V
.line 21
:cond_a0
invoke-virtual {v4, v6}, Ljava/net/HttpURLConnection;->setDoInput(Z)V
if-eq v1, v8, :cond_ae
if-ne v1, v9, :cond_a8
goto :goto_ae
:cond_a8
:try_start_a8
const-string v11, "GET"
.line 22
invoke-virtual {v4, v11}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
goto :goto_b3
:cond_ae
:goto_ae
const-string v11, "POST"
.line 23
invoke-virtual {v4, v11}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
:try_end_b3
.catch Ljava/net/ProtocolException; {:try_start_a8 .. :try_end_b3} :catch_2c0
.line 24
:goto_b3
invoke-virtual {v4, v7}, Ljava/net/HttpURLConnection;->setUseCaches(Z)V
const/16 v11, 0x2710
.line 25
invoke-virtual {v4, v11}, Ljava/net/HttpURLConnection;->setConnectTimeout(I)V
const v11, 0xea60
.line 26
invoke-virtual {v4, v11}, Ljava/net/HttpURLConnection;->setReadTimeout(I)V
const-string v11, "Connection"
const-string v12, "close"
.line 27
invoke-virtual {v4, v11, v12}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
if-eqz p3, :cond_d1
const-string v11, "Accept-Encoding"
const-string v12, "gzip,deflate"
.line 28
invoke-virtual {v4, v11, v12}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 29
:cond_d1
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v11
if-nez v11, :cond_dc
const-string v11, "Host"
.line 30
invoke-virtual {v4, v11, v0}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 31
:cond_dc
invoke-virtual {v4, v6}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V
if-eq v1, v8, :cond_e7
if-ne v1, v9, :cond_e4
goto :goto_e7
:cond_e4
const/4 v5, 0x0
goto/16 :goto_1cd
:cond_e7
:goto_e7
const-string v0, "Content-Type"
if-ne v1, v8, :cond_f1
const-string v11, "multipart/form-data; boundary=GJircTeP"
.line 32
invoke-virtual {v4, v0, v11}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_f8
:cond_f1
if-ne v1, v9, :cond_f8
const-string v11, "application/x-www-form-urlencoded"
.line 33
invoke-virtual {v4, v0, v11}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
:cond_f8
:goto_f8
if-eqz v2, :cond_1be
.line 34
invoke-interface/range {p2 .. p2}, Ljava/util/Map;->size()I
move-result v0
if-lez v0, :cond_1be
.line 35
new-instance v11, Ljava/io/ByteArrayOutputStream;
invoke-direct {v11}, Ljava/io/ByteArrayOutputStream;-><init>()V
.line 36
invoke-interface/range {p2 .. p2}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v0
.line 37
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v12
new-array v12, v12, [Ljava/lang/String;
.line 38
invoke-interface {v0, v12}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
.line 39
invoke-static {}, Lcom/alibaba/mtl/log/d/g;->a()Lcom/alibaba/mtl/log/d/g;
move-result-object v0
invoke-virtual {v0, v12, v6}, Lcom/alibaba/mtl/log/d/g;->a([Ljava/lang/String;Z)[Ljava/lang/String;
move-result-object v12
.line 40
array-length v13, v12
const/4 v14, 0x0
:goto_11c
if-ge v14, v13, :cond_1a8
aget-object v0, v12, v14
if-ne v1, v8, :cond_14f
.line 41
invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v15
check-cast v15, [B
if-eqz v15, :cond_1a2
:try_start_12a
const-string v5, "--GJircTeP\r\nContent-Disposition: form-data; name=\"%s\"; filename=\"%s\"\r\nContent-Type: application/octet-stream \r\n\r\n"
.line 42
new-array v9, v8, [Ljava/lang/Object;
aput-object v0, v9, v7
aput-object v0, v9, v6
invoke-static {v5, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B
move-result-object v0
invoke-virtual {v11, v0}, Ljava/io/ByteArrayOutputStream;->write([B)V
.line 43
invoke-virtual {v11, v15}, Ljava/io/ByteArrayOutputStream;->write([B)V
const-string v0, "\r\n"
.line 44
invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B
move-result-object v0
invoke-virtual {v11, v0}, Ljava/io/ByteArrayOutputStream;->write([B)V
:try_end_149
.catch Ljava/io/IOException; {:try_start_12a .. :try_end_149} :catch_14a
goto :goto_1a2
:catch_14a
move-exception v0
.line 45
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_1a2
:cond_14f
const/4 v5, 0x3
if-ne v1, v5, :cond_1a2
.line 46
invoke-interface {v2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/String;
.line 47
invoke-virtual {v11}, Ljava/io/ByteArrayOutputStream;->size()I
move-result v9
const-string v15, "="
if-lez v9, :cond_184
.line 48
:try_start_160
new-instance v9, Ljava/lang/StringBuilder;
invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V
const-string v6, "&"
invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B
move-result-object v0
invoke-virtual {v11, v0}, Ljava/io/ByteArrayOutputStream;->write([B)V
:try_end_17e
.catch Ljava/io/IOException; {:try_start_160 .. :try_end_17e} :catch_17f
goto :goto_1a2
:catch_17f
move-exception v0
.line 49
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
goto :goto_1a2
.line 50
:cond_184
:try_start_184
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B
move-result-object v0
invoke-virtual {v11, v0}, Ljava/io/ByteArrayOutputStream;->write([B)V
:try_end_19d
.catch Ljava/io/IOException; {:try_start_184 .. :try_end_19d} :catch_19e
goto :goto_1a2
:catch_19e
move-exception v0
.line 51
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:cond_1a2
:goto_1a2
add-int/lit8 v14, v14, 0x1
const/4 v6, 0x1
const/4 v9, 0x3
goto/16 :goto_11c
:cond_1a8
if-ne v1, v8, :cond_1b8
:try_start_1aa
const-string v0, "--GJircTeP--\r\n"
.line 52
invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B
move-result-object v0
invoke-virtual {v11, v0}, Ljava/io/ByteArrayOutputStream;->write([B)V
:try_end_1b3
.catch Ljava/io/IOException; {:try_start_1aa .. :try_end_1b3} :catch_1b4
goto :goto_1b8
:catch_1b4
move-exception v0
.line 53
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
.line 54
:cond_1b8
:goto_1b8
invoke-virtual {v11}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
move-object v5, v0
goto :goto_1bf
:cond_1be
const/4 v5, 0x0
:goto_1bf
if-eqz v5, :cond_1c3
.line 55
array-length v0, v5
goto :goto_1c4
:cond_1c3
const/4 v0, 0x0
.line 56
:goto_1c4
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
const-string v2, "Content-Length"
invoke-virtual {v4, v2, v0}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
.line 57
:goto_1cd
:try_start_1cd
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->connect()V
if-eq v1, v8, :cond_1d5
const/4 v2, 0x3
if-ne v1, v2, :cond_1f4
:cond_1d5
if-eqz v5, :cond_1f4
.line 58
array-length v0, v5
if-lez v0, :cond_1f4
.line 59
new-instance v1, Ljava/io/DataOutputStream;
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->getOutputStream()Ljava/io/OutputStream;
move-result-object v0
invoke-direct {v1, v0}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_1e3
.catch Ljava/lang/Exception; {:try_start_1cd .. :try_end_1e3} :catch_29a
.catchall {:try_start_1cd .. :try_end_1e3} :catchall_295
.line 60
:try_start_1e3
invoke-virtual {v1, v5}, Ljava/io/DataOutputStream;->write([B)V
.line 61
invoke-virtual {v1}, Ljava/io/DataOutputStream;->flush()V
:try_end_1e9
.catch Ljava/lang/Exception; {:try_start_1e3 .. :try_end_1e9} :catch_1f0
.catchall {:try_start_1e3 .. :try_end_1e9} :catchall_1ea
goto :goto_1f5
:catchall_1ea
move-exception v0
move-object/from16 v16, v1
move-object v1, v0
goto/16 :goto_2b4
:catch_1f0
move-exception v0
move-object v5, v1
goto/16 :goto_29c
:cond_1f4
const/4 v1, 0x0
:goto_1f5
if-eqz v1, :cond_200
.line 62
:try_start_1f7
invoke-virtual {v1}, Ljava/io/DataOutputStream;->close()V
:try_end_1fa
.catch Ljava/io/IOException; {:try_start_1f7 .. :try_end_1fa} :catch_1fb
goto :goto_200
:catch_1fb
move-exception v0
move-object v1, v0
.line 63
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
.line 64
:cond_200
:goto_200
:try_start_200
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->getResponseCode()I
move-result v0
iput v0, v3, Lcom/alibaba/mtl/log/d/e$a;->F:I
.line 65
new-array v0, v8, [Ljava/lang/Object;
const-string v1, "responseCode:"
aput-object v1, v0, v7
iget v1, v3, Lcom/alibaba/mtl/log/d/e$a;->F:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
invoke-static {v10, v0}, Lcom/alibaba/mtl/log/d/i;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_218
.catch Ljava/io/IOException; {:try_start_200 .. :try_end_218} :catch_219
goto :goto_21d
:catch_219
move-exception v0
.line 66
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
.line 67
:goto_21d
new-instance v1, Ljava/io/ByteArrayOutputStream;
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
if-eqz p3, :cond_23a
:try_start_224
const-string v0, "gzip"
.line 68
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->getContentEncoding()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_23a
.line 69
new-instance v0, Ljava/util/zip/GZIPInputStream;
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object v2
invoke-direct {v0, v2}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
goto :goto_243
.line 70
:cond_23a
new-instance v0, Ljava/io/DataInputStream;
invoke-virtual {v4}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object v2
invoke-direct {v0, v2}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_243
.catch Ljava/io/IOException; {:try_start_224 .. :try_end_243} :catch_274
.catchall {:try_start_224 .. :try_end_243} :catchall_26f
:goto_243
move-object v5, v0
.line 71
:try_start_244
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
const/16 v0, 0x800
.line 72
new-array v2, v0, [B
.line 73
:goto_24b
invoke-virtual {v5, v2, v7, v0}, Ljava/io/FilterInputStream;->read([BII)I
move-result v4
const/4 v6, -0x1
if-eq v4, v6, :cond_256
.line 74
invoke-virtual {v1, v2, v7, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V
:try_end_255
.catch Ljava/io/IOException; {:try_start_244 .. :try_end_255} :catch_26d
.catchall {:try_start_244 .. :try_end_255} :catchall_285
goto :goto_24b
.line 75
:cond_256
:try_start_256
invoke-virtual {v5}, Ljava/io/FilterInputStream;->close()V
:try_end_259
.catch Ljava/lang/Exception; {:try_start_256 .. :try_end_259} :catch_25a
goto :goto_25f
:catch_25a
move-exception v0
move-object v2, v0
.line 76
invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
.line 77
:goto_25f
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->size()I
move-result v0
if-lez v0, :cond_2d1
.line 78
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
iput-object v0, v3, Lcom/alibaba/mtl/log/d/e$a;->data:[B
goto/16 :goto_2d1
:catch_26d
move-exception v0
goto :goto_276
:catchall_26f
move-exception v0
move-object v1, v0
const/16 v16, 0x0
goto :goto_289
:catch_274
move-exception v0
const/4 v5, 0x0
.line 79
:goto_276
:try_start_276
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
:try_end_279
.catchall {:try_start_276 .. :try_end_279} :catchall_285
if-eqz v5, :cond_284
.line 80
:try_start_27b
invoke-virtual {v5}, Ljava/io/FilterInputStream;->close()V
:try_end_27e
.catch Ljava/lang/Exception; {:try_start_27b .. :try_end_27e} :catch_27f
goto :goto_284
:catch_27f
move-exception v0
move-object v1, v0
.line 81
invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
:cond_284
:goto_284
return-object v3
:catchall_285
move-exception v0
move-object v1, v0
move-object/from16 v16, v5
:goto_289
if-eqz v16, :cond_294
.line 82
:try_start_28b
invoke-virtual/range {v16 .. v16}, Ljava/io/FilterInputStream;->close()V
:try_end_28e
.catch Ljava/lang/Exception; {:try_start_28b .. :try_end_28e} :catch_28f
goto :goto_294
:catch_28f
move-exception v0
move-object v2, v0
.line 83
invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
.line 84
:cond_294
:goto_294
throw v1
:catchall_295
move-exception v0
move-object v1, v0
const/16 v16, 0x0
goto :goto_2b4
:catch_29a
move-exception v0
const/4 v5, 0x0
.line 85
:goto_29c
:try_start_29c
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
const-string v1, "http"
.line 86
invoke-static {v10, v1, v0}, Lcom/alibaba/mtl/log/d/i;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Throwable;)V
:try_end_2a4
.catchall {:try_start_29c .. :try_end_2a4} :catchall_2b0
if-eqz v5, :cond_2af
.line 87
:try_start_2a6
invoke-virtual {v5}, Ljava/io/DataOutputStream;->close()V
:try_end_2a9
.catch Ljava/io/IOException; {:try_start_2a6 .. :try_end_2a9} :catch_2aa
goto :goto_2af
:catch_2aa
move-exception v0
move-object v1, v0
.line 88
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
:cond_2af
:goto_2af
return-object v3
:catchall_2b0
move-exception v0
move-object v1, v0
move-object/from16 v16, v5
:goto_2b4
if-eqz v16, :cond_2bf
.line 89
:try_start_2b6
invoke-virtual/range {v16 .. v16}, Ljava/io/DataOutputStream;->close()V
:try_end_2b9
.catch Ljava/io/IOException; {:try_start_2b6 .. :try_end_2b9} :catch_2ba
goto :goto_2bf
:catch_2ba
move-exception v0
move-object v2, v0
.line 90
invoke-virtual {v2}, Ljava/io/IOException;->printStackTrace()V
.line 91
:cond_2bf
:goto_2bf
throw v1
:catch_2c0
move-exception v0
.line 92
invoke-virtual {v0}, Ljava/net/ProtocolException;->printStackTrace()V
:catch_2c4
return-object v3
.line 93
:cond_2c5
new-array v0, v8, [Ljava/lang/Object;
const-string v1, "conn"
aput-object v1, v0, v7
const/4 v1, 0x1
aput-object v4, v0, v1
invoke-static {v10, v0}, Lcom/alibaba/mtl/log/d/i;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_2d1
:goto_2d1
return-object v3
:catch_2d2
move-exception v0
.line 94
invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
return-object v3
:catch_2d7
move-exception v0
.line 95
invoke-virtual {v0}, Ljava/net/MalformedURLException;->printStackTrace()V
return-object v3
.end method