.class final Lokhttp3/RealCall$AsyncCall; .super Lokhttp3/internal/NamedRunnable; .source "" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/RealCall; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x10 name = "AsyncCall" .end annotation # instance fields .field private final responseCallback:Lokhttp3/Callback; .field final synthetic this$0:Lokhttp3/RealCall; # direct methods .method constructor (Lokhttp3/RealCall;Lokhttp3/Callback;)V .locals 2 iput-object p1, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; const/4 v0, 0x1 new-array v0, v0, [Ljava/lang/Object; invoke-virtual {p1}, Lokhttp3/RealCall;->redactedUrl()Ljava/lang/String; move-result-object p1 const/4 v1, 0x0 aput-object p1, v0, v1 const-string p1, "OkHttp %s" invoke-direct {p0, p1, v0}, Lokhttp3/internal/NamedRunnable;->(Ljava/lang/String;[Ljava/lang/Object;)V iput-object p2, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback; return-void .end method # virtual methods .method protected execute()V .locals 5 const/4 v0, 0x1 const/4 v1, 0x0 :try_start_0 iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; invoke-virtual {v2}, Lokhttp3/RealCall;->getResponseWithInterceptorChain()Lokhttp3/Response; move-result-object v2 iget-object v3, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; iget-object v3, v3, Lokhttp3/RealCall;->retryAndFollowUpInterceptor:Lokhttp3/internal/http/RetryAndFollowUpInterceptor; invoke-virtual {v3}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;->isCanceled()Z move-result v1 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz v1, :cond_0 :try_start_1 iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback; iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; new-instance v3, Ljava/io/IOException; const-string v4, "Canceled" invoke-direct {v3, v4}, Ljava/io/IOException;->(Ljava/lang/String;)V invoke-interface {v1, v2, v3}, Lokhttp3/Callback;->onFailure(Lokhttp3/Call;Ljava/io/IOException;)V goto :goto_0 :cond_0 iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback; iget-object v3, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; invoke-interface {v1, v3, v2}, Lokhttp3/Callback;->onResponse(Lokhttp3/Call;Lokhttp3/Response;)V :try_end_1 .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :goto_0 iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; iget-object v0, v0, Lokhttp3/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v0}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher; move-result-object v0 invoke-virtual {v0, p0}, Lokhttp3/Dispatcher;->finished(Lokhttp3/RealCall$AsyncCall;)V goto :goto_2 :catch_0 move-exception v1 goto :goto_1 :catchall_0 move-exception v0 goto :goto_3 :catch_1 move-exception v0 move-object v1, v0 const/4 v0, 0x0 :goto_1 if-eqz v0, :cond_1 :try_start_2 invoke-static {}, Lokhttp3/internal/platform/Platform;->get()Lokhttp3/internal/platform/Platform; move-result-object v0 const/4 v2, 0x4 new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3}, Ljava/lang/StringBuilder;->()V const-string v4, "Callback failure for " invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v4, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; invoke-virtual {v4}, Lokhttp3/RealCall;->toLoggableString()Ljava/lang/String; move-result-object v4 invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 invoke-virtual {v0, v2, v3, v1}, Lokhttp3/internal/platform/Platform;->log(ILjava/lang/String;Ljava/lang/Throwable;)V goto :goto_0 :cond_1 iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; invoke-static {v0}, Lokhttp3/RealCall;->access$000(Lokhttp3/RealCall;)Lokhttp3/EventListener; move-result-object v0 iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; invoke-virtual {v0, v2, v1}, Lokhttp3/EventListener;->callFailed(Lokhttp3/Call;Ljava/io/IOException;)V iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->responseCallback:Lokhttp3/Callback; iget-object v2, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; invoke-interface {v0, v2, v1}, Lokhttp3/Callback;->onFailure(Lokhttp3/Call;Ljava/io/IOException;)V :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 goto :goto_0 :goto_2 return-void :goto_3 iget-object v1, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; iget-object v1, v1, Lokhttp3/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v1}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher; move-result-object v1 invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->finished(Lokhttp3/RealCall$AsyncCall;)V goto :goto_5 :goto_4 throw v0 :goto_5 goto :goto_4 .end method .method get()Lokhttp3/RealCall; .locals 1 iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; return-object v0 .end method .method host()Ljava/lang/String; .locals 1 iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; iget-object v0, v0, Lokhttp3/RealCall;->originalRequest:Lokhttp3/Request; invoke-virtual {v0}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v0 invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method request()Lokhttp3/Request; .locals 1 iget-object v0, p0, Lokhttp3/RealCall$AsyncCall;->this$0:Lokhttp3/RealCall; iget-object v0, v0, Lokhttp3/RealCall;->originalRequest:Lokhttp3/Request; return-object v0 .end method