.class public abstract Lorg/apache/http/impl/client/CloseableHttpClient; .super Ljava/lang/Object; .source "CloseableHttpClient.java" # interfaces .implements Lorg/apache/http/client/HttpClient; .implements Ljava/io/Closeable; # instance fields .field private final log:Lorg/apache/commons/logging/Log; # direct methods .method public constructor ()V .registers 2 .line 57 invoke-direct {p0}, Ljava/lang/Object;->()V .line 59 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v0 invoke-static {v0}, Lorg/apache/commons/logging/LogFactory;->getLog(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; move-result-object v0 iput-object v0, p0, Lorg/apache/http/impl/client/CloseableHttpClient;->log:Lorg/apache/commons/logging/Log; return-void .end method .method private static determineTarget(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpHost; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 91 invoke-interface {p0}, Lorg/apache/http/client/methods/HttpUriRequest;->getURI()Ljava/net/URI; move-result-object p0 .line 92 invoke-virtual {p0}, Ljava/net/URI;->isAbsolute()Z move-result v0 if-eqz v0, :cond_26 .line 93 invoke-static {p0}, Lorg/apache/http/client/utils/URIUtils;->extractHost(Ljava/net/URI;)Lorg/apache/http/HttpHost; move-result-object v0 if-eqz v0, :cond_11 goto :goto_27 .line 95 :cond_11 new-instance v0, Lorg/apache/http/client/ClientProtocolException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "URI does not specify a valid host name: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Lorg/apache/http/client/ClientProtocolException;->(Ljava/lang/String;)V throw v0 :cond_26 const/4 v0, 0x0 :goto_27 return-object v0 .end method # virtual methods .method protected abstract doExecute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .end method .method public execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/HttpHost;", "Lorg/apache/http/HttpRequest;", "Lorg/apache/http/client/ResponseHandler<", "+TT;>;)TT;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation const/4 v0, 0x0 .line 191 invoke-virtual {p0, p1, p2, p3, v0}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object; move-result-object p1 return-object p1 .end method .method public execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object; .registers 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/HttpHost;", "Lorg/apache/http/HttpRequest;", "Lorg/apache/http/client/ResponseHandler<", "+TT;>;", "Lorg/apache/http/protocol/HttpContext;", ")TT;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 219 const-string v0, "Response handler" invoke-static {p3, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 221 invoke-virtual {p0, p1, p2, p4}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 .line 223 :try_start_9 invoke-interface {p3, p1}, Lorg/apache/http/client/ResponseHandler;->handleResponse(Lorg/apache/http/HttpResponse;)Ljava/lang/Object; move-result-object p2 .line 224 invoke-interface {p1}, Lorg/apache/http/client/methods/CloseableHttpResponse;->getEntity()Lorg/apache/http/HttpEntity; move-result-object p3 .line 225 invoke-static {p3}, Lorg/apache/http/util/EntityUtils;->consume(Lorg/apache/http/HttpEntity;)V :try_end_14 .catch Lorg/apache/http/client/ClientProtocolException; {:try_start_9 .. :try_end_14} :catch_1a .catchall {:try_start_9 .. :try_end_14} :catchall_18 .line 239 invoke-interface {p1}, Lorg/apache/http/client/methods/CloseableHttpResponse;->close()V return-object p2 :catchall_18 move-exception p2 goto :goto_2c :catch_1a move-exception p2 .line 229 :try_start_1b invoke-interface {p1}, Lorg/apache/http/client/methods/CloseableHttpResponse;->getEntity()Lorg/apache/http/HttpEntity; move-result-object p3 :try_end_1f .catchall {:try_start_1b .. :try_end_1f} :catchall_18 .line 231 :try_start_1f invoke-static {p3}, Lorg/apache/http/util/EntityUtils;->consume(Lorg/apache/http/HttpEntity;)V :try_end_22 .catch Ljava/lang/Exception; {:try_start_1f .. :try_end_22} :catch_23 .catchall {:try_start_1f .. :try_end_22} :catchall_18 goto :goto_2b :catch_23 move-exception p3 .line 235 :try_start_24 iget-object p4, p0, Lorg/apache/http/impl/client/CloseableHttpClient;->log:Lorg/apache/commons/logging/Log; const-string v0, "Error consuming content after an exception." invoke-interface {p4, v0, p3}, Lorg/apache/commons/logging/Log;->warn(Ljava/lang/Object;Ljava/lang/Throwable;)V .line 237 :goto_2b throw p2 :try_end_2c .catchall {:try_start_24 .. :try_end_2c} :catchall_18 .line 239 :goto_2c invoke-interface {p1}, Lorg/apache/http/client/methods/CloseableHttpResponse;->close()V throw p2 .end method .method public execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;)Ljava/lang/Object; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/client/methods/HttpUriRequest;", "Lorg/apache/http/client/ResponseHandler<", "+TT;>;)TT;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation const/4 v0, 0x0 .line 140 invoke-virtual {p0, p1, p2, v0}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object; move-result-object p1 return-object p1 .end method .method public execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object; .registers 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lorg/apache/http/client/methods/HttpUriRequest;", "Lorg/apache/http/client/ResponseHandler<", "+TT;>;", "Lorg/apache/http/protocol/HttpContext;", ")TT;" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 164 invoke-static {p1}, Lorg/apache/http/impl/client/CloseableHttpClient;->determineTarget(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpHost; move-result-object v0 .line 165 invoke-virtual {p0, v0, p1, p2, p3}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/client/ResponseHandler;Lorg/apache/http/protocol/HttpContext;)Ljava/lang/Object; move-result-object p1 return-object p1 .end method .method public bridge synthetic execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/HttpResponse; .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 56 invoke-virtual {p0, p1, p2}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public bridge synthetic execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 56 invoke-virtual {p0, p1, p2, p3}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public bridge synthetic execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse; .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 56 invoke-virtual {p0, p1}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public bridge synthetic execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpResponse; .registers 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 56 invoke-virtual {p0, p1, p2}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation const/4 v0, 0x0 .line 118 invoke-virtual {p0, p1, p2, v0}, Lorg/apache/http/impl/client/CloseableHttpClient;->doExecute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 72 invoke-virtual {p0, p1, p2, p3}, Lorg/apache/http/impl/client/CloseableHttpClient;->doExecute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation const/4 v0, 0x0 .line 108 move-object v1, v0 check-cast v1, Lorg/apache/http/protocol/HttpContext; invoke-virtual {p0, p1, v0}, Lorg/apache/http/impl/client/CloseableHttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method .method public execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException;, Lorg/apache/http/client/ClientProtocolException; } .end annotation .line 82 const-string v0, "HTTP request" invoke-static {p1, v0}, Lorg/apache/http/util/Args;->notNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; .line 83 invoke-static {p1}, Lorg/apache/http/impl/client/CloseableHttpClient;->determineTarget(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpHost; move-result-object v0 invoke-virtual {p0, v0, p1, p2}, Lorg/apache/http/impl/client/CloseableHttpClient;->doExecute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse; move-result-object p1 return-object p1 .end method