maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [2/2] git commit: remove use of deprecated class
Date Mon, 28 Jan 2013 00:17:13 GMT
Updated Branches:
  refs/heads/master b5a0839e3 -> 18f3c6d71


remove use of deprecated class


Project: http://git-wip-us.apache.org/repos/asf/maven-wagon/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-wagon/commit/18f3c6d7
Tree: http://git-wip-us.apache.org/repos/asf/maven-wagon/tree/18f3c6d7
Diff: http://git-wip-us.apache.org/repos/asf/maven-wagon/diff/18f3c6d7

Branch: refs/heads/master
Commit: 18f3c6d711483eb2ebb3d116a284aa0771f73b3a
Parents: f8be928
Author: olivier lamy <olamy@apache.org>
Authored: Mon Jan 28 01:17:04 2013 +0100
Committer: olivier lamy <olamy@apache.org>
Committed: Mon Jan 28 01:17:04 2013 +0100

----------------------------------------------------------------------
 .../shared/http4/AbstractHttpClientWagon.java      |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-wagon/blob/18f3c6d7/wagon-providers/wagon-http-shared4/src/main/java/org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java
----------------------------------------------------------------------
diff --git a/wagon-providers/wagon-http-shared4/src/main/java/org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java
b/wagon-providers/wagon-http-shared4/src/main/java/org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java
index f98ae74..8fc61e4 100644
--- a/wagon-providers/wagon-http-shared4/src/main/java/org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java
+++ b/wagon-providers/wagon-http-shared4/src/main/java/org/apache/maven/wagon/shared/http4/AbstractHttpClientWagon.java
@@ -47,6 +47,7 @@ import org.apache.http.entity.AbstractHttpEntity;
 import org.apache.http.impl.auth.BasicScheme;
 import org.apache.http.impl.client.BasicAuthCache;
 import org.apache.http.impl.client.DefaultHttpClient;
+import org.apache.http.impl.conn.PoolingClientConnectionManager;
 import org.apache.http.impl.conn.SingleClientConnManager;
 import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
 import org.apache.http.impl.cookie.DateParseException;
@@ -283,13 +284,13 @@ public abstract class AbstractHttpClientWagon
         else
         {
 
-            ThreadSafeClientConnManager threadSafeClientConnManager = new ThreadSafeClientConnManager();
+            PoolingClientConnectionManager poolingClientConnectionManager = new PoolingClientConnectionManager();
             int maxPerRoute =
                 Integer.parseInt( System.getProperty( "maven.wagon.httpconnectionManager.maxPerRoute",
"20" ) );
-            threadSafeClientConnManager.setDefaultMaxPerRoute( maxPerRoute );
+            poolingClientConnectionManager.setDefaultMaxPerRoute( maxPerRoute );
             int maxTotal = Integer.parseInt( System.getProperty( "maven.wagon.httpconnectionManager.maxTotal",
"40" ) );
-            threadSafeClientConnManager.setDefaultMaxPerRoute( maxPerRoute );
-            threadSafeClientConnManager.setMaxTotal( maxTotal );
+            poolingClientConnectionManager.setDefaultMaxPerRoute( maxPerRoute );
+            poolingClientConnectionManager.setMaxTotal( maxTotal );
 
             if ( sslEasy )
             {
@@ -302,14 +303,14 @@ public abstract class AbstractHttpClientWagon
 
                     Scheme httpsScheme = new Scheme( "https", 443, sslSocketFactory );
 
-                    threadSafeClientConnManager.getSchemeRegistry().register( httpsScheme
);
+                    poolingClientConnectionManager.getSchemeRegistry().register( httpsScheme
);
                 }
                 catch ( IOException e )
                 {
                     throw new RuntimeException( "failed to init SSLSocket Factory " + e.getMessage(),
e );
                 }
             }
-            connectionManagerPooled = threadSafeClientConnManager;
+            connectionManagerPooled = poolingClientConnectionManager;
         }
     }
 


Mime
View raw message