IntentServicePostNotification.smali
.class public Lcom/paytm/pgsdk/IntentServicePostNotification;
.super Landroid/app/IntentService;
.source "IntentServicePostNotification.java"
# direct methods
.method public constructor <init>()V
.registers 2
const-string v0, "IntentServicePostNotification"
.line 22
invoke-direct {p0, v0}, Landroid/app/IntentService;-><init>(Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public callHttp(Ljava/lang/String;)V
.registers 7
.line 36
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
const/4 v0, 0x0
.line 42
:try_start_8
new-instance v1, Ljava/net/URL;
invoke-direct {v1, p1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
.line 45
invoke-virtual {v1}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
move-result-object p1
check-cast p1, Ljava/net/HttpURLConnection;
:try_end_13
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_13} :catch_39
.catchall {:try_start_8 .. :try_end_13} :catchall_34
.line 47
:try_start_13
invoke-virtual {p1}, Ljava/net/HttpURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object v0
.line 49
new-instance v1, Ljava/io/InputStreamReader;
invoke-direct {v1, v0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
.line 51
invoke-virtual {v1}, Ljava/io/InputStreamReader;->read()I
move-result v0
:goto_20
const/4 v2, -0x1
if-eq v0, v2, :cond_2f
int-to-char v0, v0
.line 54
invoke-virtual {v1}, Ljava/io/InputStreamReader;->read()I
move-result v2
.line 55
sget-object v3, Ljava/lang/System;->out:Ljava/io/PrintStream;
invoke-virtual {v3, v0}, Ljava/io/PrintStream;->print(C)V
:try_end_2d
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_2d} :catch_32
.catchall {:try_start_13 .. :try_end_2d} :catchall_46
move v0, v2
goto :goto_20
:cond_2f
if-eqz p1, :cond_45
goto :goto_42
:catch_32
move-exception v0
goto :goto_3d
:catchall_34
move-exception p1
move-object v4, v0
move-object v0, p1
move-object p1, v4
goto :goto_47
:catch_39
move-exception p1
move-object v4, v0
move-object v0, p1
move-object p1, v4
.line 59
:goto_3d
:try_start_3d
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_40
.catchall {:try_start_3d .. :try_end_40} :catchall_46
if-eqz p1, :cond_45
.line 62
:goto_42
invoke-virtual {p1}, Ljava/net/HttpURLConnection;->disconnect()V
:cond_45
return-void
:catchall_46
move-exception v0
:goto_47
if-eqz p1, :cond_4c
invoke-virtual {p1}, Ljava/net/HttpURLConnection;->disconnect()V
.line 64
:cond_4c
throw v0
.end method
.method protected onHandleIntent(Landroid/content/Intent;)V
.registers 3
if-eqz p1, :cond_15
.line 28
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object v0
if-eqz v0, :cond_15
.line 29
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p1
const-string v0, "url"
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 30
invoke-virtual {p0, p1}, Lcom/paytm/pgsdk/IntentServicePostNotification;->callHttp(Ljava/lang/String;)V
:cond_15
return-void
.end method