hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1355728 - /httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/java/org/apache/http/client/fluent/Executor.java
Date Sat, 30 Jun 2012 13:10:35 GMT
Author: olegk
Date: Sat Jun 30 13:10:34 2012
New Revision: 1355728

URL: http://svn.apache.org/viewvc?rev=1355728&view=rev
Log:
Removed references to deprecated classes

Modified:
    httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/java/org/apache/http/client/fluent/Executor.java

Modified: httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/java/org/apache/http/client/fluent/Executor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/java/org/apache/http/client/fluent/Executor.java?rev=1355728&r1=1355727&r2=1355728&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/java/org/apache/http/client/fluent/Executor.java
(original)
+++ httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/java/org/apache/http/client/fluent/Executor.java
Sat Jun 30 13:10:34 2012
@@ -54,14 +54,14 @@ import org.apache.http.conn.ssl.SSLSocke
 import org.apache.http.impl.auth.BasicScheme;
 import org.apache.http.impl.client.BasicAuthCache;
 import org.apache.http.impl.client.BasicCredentialsProvider;
-import org.apache.http.impl.client.DefaultHttpClient;
+import org.apache.http.impl.client.HttpClientBuilder;
 import org.apache.http.impl.conn.PoolingClientConnectionManager;
 import org.apache.http.protocol.BasicHttpContext;
 
 public class Executor {
 
     final static PoolingClientConnectionManager CONNMGR;
-    final static DefaultHttpClient CLIENT;
+    final static HttpClient CLIENT;
 
     static {
         SchemeRegistry schemeRegistry = new SchemeRegistry();
@@ -87,7 +87,7 @@ public class Executor {
         CONNMGR = new PoolingClientConnectionManager(schemeRegistry);
         CONNMGR.setDefaultMaxPerRoute(100);
         CONNMGR.setMaxTotal(200);
-        CLIENT = new DefaultHttpClient(CONNMGR);
+        CLIENT = new HttpClientBuilder().setConnectionManager(CONNMGR).build();
     }
 
     public static Executor newInstance() {



Mime
View raw message