hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1426535 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClients.java
Date Fri, 28 Dec 2012 14:59:41 GMT
Author: olegk
Date: Fri Dec 28 14:59:41 2012
New Revision: 1426535

URL: http://svn.apache.org/viewvc?rev=1426535&view=rev
Log:
Added method to create minimal HttpClient with a custom connection manager

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

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClients.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClients.java?rev=1426535&r1=1426534&r2=1426535&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClients.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/HttpClients.java
Fri Dec 28 14:59:41 2012
@@ -28,6 +28,7 @@
 package org.apache.http.impl.client;
 
 import org.apache.http.annotation.Immutable;
+import org.apache.http.conn.HttpClientConnectionManager;
 import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
 
 /**
@@ -56,4 +57,8 @@ public class HttpClients {
         return new MinimalHttpClient(new PoolingHttpClientConnectionManager());
     }
 
+    public static CloseableHttpClient createMinimal(final HttpClientConnectionManager connManager)
{
+        return new MinimalHttpClient(connManager);
+    }
+
 }



Mime
View raw message