Http2Connection$4.smali 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .class Lokhttp3/internal/http2/Http2Connection$4;
  2. .super Lokhttp3/internal/NamedRunnable;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokhttp3/internal/http2/Http2Connection;->pushRequestLater(ILjava/util/List;)V
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. # instance fields
  13. .field final synthetic this$0:Lokhttp3/internal/http2/Http2Connection;
  14. .field final synthetic val$requestHeaders:Ljava/util/List;
  15. .field final synthetic val$streamId:I
  16. # direct methods
  17. .method varargs constructor <init>(Lokhttp3/internal/http2/Http2Connection;Ljava/lang/String;[Ljava/lang/Object;ILjava/util/List;)V
  18. .locals 0
  19. iput-object p1, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
  20. iput p4, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
  21. iput-object p5, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$requestHeaders:Ljava/util/List;
  22. invoke-direct {p0, p2, p3}, Lokhttp3/internal/NamedRunnable;-><init>(Ljava/lang/String;[Ljava/lang/Object;)V
  23. return-void
  24. .end method
  25. # virtual methods
  26. .method public execute()V
  27. .locals 3
  28. iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
  29. iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->pushObserver:Lokhttp3/internal/http2/PushObserver;
  30. iget v1, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
  31. iget-object v2, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$requestHeaders:Ljava/util/List;
  32. invoke-interface {v0, v1, v2}, Lokhttp3/internal/http2/PushObserver;->onRequest(ILjava/util/List;)Z
  33. move-result v0
  34. if-eqz v0, :cond_0
  35. :try_start_0
  36. iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
  37. iget-object v0, v0, Lokhttp3/internal/http2/Http2Connection;->writer:Lokhttp3/internal/http2/Http2Writer;
  38. iget v1, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
  39. sget-object v2, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
  40. invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http2/Http2Writer;->rstStream(ILokhttp3/internal/http2/ErrorCode;)V
  41. iget-object v0, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
  42. monitor-enter v0
  43. :try_end_0
  44. .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
  45. :try_start_1
  46. iget-object v1, p0, Lokhttp3/internal/http2/Http2Connection$4;->this$0:Lokhttp3/internal/http2/Http2Connection;
  47. iget-object v1, v1, Lokhttp3/internal/http2/Http2Connection;->currentPushRequests:Ljava/util/Set;
  48. iget v2, p0, Lokhttp3/internal/http2/Http2Connection$4;->val$streamId:I
  49. invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
  50. move-result-object v2
  51. invoke-interface {v1, v2}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
  52. monitor-exit v0
  53. goto :goto_0
  54. :catchall_0
  55. move-exception v1
  56. monitor-exit v0
  57. :try_end_1
  58. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  59. :try_start_2
  60. throw v1
  61. :try_end_2
  62. .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
  63. :catch_0
  64. :cond_0
  65. :goto_0
  66. return-void
  67. .end method