diff options
author | Olivier Lamy <olamy@apache.org> | 2015-07-22 21:36:48 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-07-22 21:36:48 +1000 |
commit | 73d92ab3768036ea6cb872445e08f92b6ad25889 (patch) | |
tree | 2bc43ecceba5763e0194e35a696b1ce7d769c655 /archiva-modules | |
parent | 01f9aad6176656bf6a0bf010c65cd265c87cf62b (diff) | |
download | archiva-73d92ab3768036ea6cb872445e08f92b6ad25889.tar.gz archiva-73d92ab3768036ea6cb872445e08f92b6ad25889.zip |
[MRM-1895] upgrade to wagon 2.8
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/admin/DefaultArchivaAdministration.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/admin/DefaultArchivaAdministration.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/admin/DefaultArchivaAdministration.java index a75a88e11..54d26fb5e 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/admin/DefaultArchivaAdministration.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/admin/DefaultArchivaAdministration.java @@ -33,6 +33,7 @@ import org.apache.archiva.configuration.WebappConfiguration; import org.apache.archiva.metadata.model.facets.AuditEvent; import org.apache.commons.lang.StringUtils; import org.apache.http.impl.conn.PoolingClientConnectionManager; +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; import org.apache.maven.wagon.providers.http.HttpWagon; import org.springframework.stereotype.Service; @@ -51,7 +52,7 @@ public class DefaultArchivaAdministration implements ArchivaAdministration { - private PoolingClientConnectionManager poolingClientConnectionManager; + private PoolingHttpClientConnectionManager poolingClientConnectionManager; @PostConstruct public void initialize() @@ -413,20 +414,20 @@ public class DefaultArchivaAdministration if ( networkConfiguration == null ) { // back to default values - HttpWagon.setUseClientManagerPooled( true ); - poolingClientConnectionManager = new PoolingClientConnectionManager(); + HttpWagon.setPersistentPool( true ); + poolingClientConnectionManager = new PoolingHttpClientConnectionManager(); poolingClientConnectionManager.setDefaultMaxPerRoute( 30 ); poolingClientConnectionManager.setMaxTotal( 30 ); - HttpWagon.setConnectionManagerPooled( poolingClientConnectionManager ); + HttpWagon.setPoolingHttpClientConnectionManager( poolingClientConnectionManager ); } else { - HttpWagon.setUseClientManagerPooled( networkConfiguration.isUsePooling() ); - poolingClientConnectionManager = new PoolingClientConnectionManager(); + HttpWagon.setPersistentPool( networkConfiguration.isUsePooling() ); + poolingClientConnectionManager = new PoolingHttpClientConnectionManager(); poolingClientConnectionManager.setDefaultMaxPerRoute( networkConfiguration.getMaxTotalPerHost() ); poolingClientConnectionManager.setMaxTotal( networkConfiguration.getMaxTotal() ); - HttpWagon.setConnectionManagerPooled( poolingClientConnectionManager ); + HttpWagon.setPoolingHttpClientConnectionManager( poolingClientConnectionManager ); } } |