[prev in list] [next in list] [prev in thread] [next in thread]
List: httpcomponents-commits
Subject: svn commit: r1355728 - /httpcomponents/httpclient/branches/decorator-refactoring/fluent-hc/src/main/
From: olegk () apache ! org
Date: 2012-06-30 13:10:35
Message-ID: 20120630131035.9E58423889BB () eris ! apache ! org
[Download RAW message or body]
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-refacto \
ring/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() {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic