hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1647755 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/InternalHttpClient.java
Date Wed, 24 Dec 2014 09:44:06 GMT
Author: olegk
Date: Wed Dec 24 09:44:05 2014
New Revision: 1647755

URL: http://svn.apache.org/r1647755
Log:
InternalHttpClient class to implement Configurable (per request of Spring folks)

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/InternalHttpClient.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/InternalHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/InternalHttpClient.java?rev=1647755&r1=1647754&r2=1647755&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/InternalHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/InternalHttpClient.java
Wed Dec 24 09:44:05 2014
@@ -74,7 +74,7 @@ import org.apache.http.util.Args;
  */
 @ThreadSafe
 @SuppressWarnings("deprecation")
-class InternalHttpClient extends CloseableHttpClient {
+class InternalHttpClient extends CloseableHttpClient implements Configurable {
 
     private final Log log = LogFactory.getLog(getClass());
 
@@ -188,6 +188,11 @@ class InternalHttpClient extends Closeab
     }
 
     @Override
+    public RequestConfig getConfig() {
+        return this.defaultConfig;
+    }
+
+    @Override
     public void close() {
         if (this.closeables != null) {
             for (final Closeable closeable: this.closeables) {



Mime
View raw message