Http2Connection$4.smali
.class Lokhttp3/internal/http2/Http2Connection$4;
.super Lokhttp3/internal/NamedRunnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/internal/http2/Http2Connection;->pushRequestLater(ILjava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lokhttp3/internal/http2/Http2Connection;
.field final synthetic val$requestHeaders:Ljava/util/List;
.field final synthetic val$streamId:I
# direct methods
.method varargs constructor <init>(Lokhttp3/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;)V
.registers 6
iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
iput p4, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
iput-object p5, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$requestHeaders:Ljava/util/List;
invoke-direct {p0, p2, p3}, Lokhttp3/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public execute()V
.registers 4
iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->pushObserver:Lokhttp3/internal/http2/PushObserver;
iget v1, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$requestHeaders:Ljava/util/List;
invoke-interface {v0, v1, v2}, Lokhttp3/internal/http2/PushObserver;->onRequest(ILjava/util/List;)Z
move-result v0
if-eqz v0, :cond_2a
:try_start_e
iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->writer:Lokhttp3/internal/http2/Http2Writer;
iget v1, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http2/Http2Writer;->rstStream(ILokhttp3/internal/http2/ErrorCode;)V
iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
monitor-enter v1
:try_end_1c
.catch Ljava/io/IOException; {:try_start_e .. :try_end_1c} :catch_2e
:try_start_1c
iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
iget v2, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v0, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
monitor-exit v1
:cond_2a
:goto_2a
return-void
:catchall_2b
move-exception v0
monitor-exit v1
:try_end_2d
.catchall {:try_start_1c .. :try_end_2d} :catchall_2b
:try_start_2d
throw v0
:try_end_2e
.catch Ljava/io/IOException; {:try_start_2d .. :try_end_2e} :catch_2e
:catch_2e
move-exception v0
goto :goto_2a
.end method