]> source.dussan.org Git - archiva.git/commitdiff
remove use of deprecated class
authorOlivier Lamy <olamy@apache.org>
Mon, 28 Jan 2013 23:25:18 +0000 (23:25 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 28 Jan 2013 23:25:18 +0000 (23:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1439691 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/admin/DefaultArchivaAdministration.java

index b694d72d71325aea7022dc9cbdddb68eea3b61a3..8a27c031ddf9ff4eaf098ab0dfbf74332a905a49 100644 (file)
@@ -33,6 +33,7 @@ import org.apache.archiva.configuration.Configuration;
 import org.apache.archiva.configuration.UserInterfaceOptions;
 import org.apache.archiva.configuration.WebappConfiguration;
 import org.apache.commons.lang.StringUtils;
+import org.apache.http.impl.conn.PoolingClientConnectionManager;
 import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
 import org.apache.maven.wagon.providers.http.HttpWagon;
 import org.springframework.stereotype.Service;
@@ -380,19 +381,19 @@ public class DefaultArchivaAdministration
         {
             // back to default values
             HttpWagon.setUseClientManagerPooled( true );
-            ThreadSafeClientConnManager threadSafeClientConnManager = new ThreadSafeClientConnManager();
-            threadSafeClientConnManager.setDefaultMaxPerRoute( 30 );
-            threadSafeClientConnManager.setMaxTotal( 30 );
-            HttpWagon.setConnectionManagerPooled( threadSafeClientConnManager );
+            PoolingClientConnectionManager poolingClientConnectionManager = new PoolingClientConnectionManager();
+            poolingClientConnectionManager.setDefaultMaxPerRoute( 30 );
+            poolingClientConnectionManager.setMaxTotal( 30 );
+            HttpWagon.setConnectionManagerPooled( poolingClientConnectionManager );
 
         }
         else
         {
             HttpWagon.setUseClientManagerPooled( networkConfiguration.isUsePooling() );
-            ThreadSafeClientConnManager threadSafeClientConnManager = new ThreadSafeClientConnManager();
-            threadSafeClientConnManager.setDefaultMaxPerRoute( networkConfiguration.getMaxTotalPerHost() );
-            threadSafeClientConnManager.setMaxTotal( networkConfiguration.getMaxTotal() );
-            HttpWagon.setConnectionManagerPooled( threadSafeClientConnManager );
+            PoolingClientConnectionManager poolingClientConnectionManager = new PoolingClientConnectionManager();
+            poolingClientConnectionManager.setDefaultMaxPerRoute( networkConfiguration.getMaxTotalPerHost() );
+            poolingClientConnectionManager.setMaxTotal( networkConfiguration.getMaxTotal() );
+            HttpWagon.setConnectionManagerPooled( poolingClientConnectionManager );
         }
     }