aboutsummaryrefslogtreecommitdiffstats
path: root/maven-repository-proxy
diff options
context:
space:
mode:
authorEdwin L. Punzalan <epunzalan@apache.org>2006-03-13 10:42:34 +0000
committerEdwin L. Punzalan <epunzalan@apache.org>2006-03-13 10:42:34 +0000
commit3bb32024d56614236e4cf4021b0245f649e5e7a2 (patch)
treec069cf9f0e51c743ce5f52af94e95e051077ebfd /maven-repository-proxy
parentad1714a02d33a16f106a946822b0305018527141 (diff)
downloadarchiva-3bb32024d56614236e4cf4021b0245f649e5e7a2.tar.gz
archiva-3bb32024d56614236e4cf4021b0245f649e5e7a2.zip
Updated javadoc annotations
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@385501 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-repository-proxy')
-rw-r--r--maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
index b3f2e3753..71d740511 100644
--- a/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
+++ b/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
@@ -105,6 +105,15 @@ public class DefaultProxyManager
return getRemoteFile( path, config.getRepositories() );
}
+ /**
+ * Tries to download the path from the list of repositories.
+ *
+ * @param path the request path to download from the proxy or repositories
+ * @param repositories list of ArtifactRepositories to download the path from
+ * @return File object that points to the downloaded file
+ * @throws ProxyException
+ * @throws ResourceDoesNotExistException
+ */
private File getRemoteFile( String path, List repositories )
throws ProxyException, ResourceDoesNotExistException
{
@@ -523,6 +532,14 @@ public class DefaultProxyManager
}
}
+ /**
+ * Queries the configuration on how to handle a repository download failure
+ *
+ * @param repository the repository object where the failure occurred
+ * @param message the message/reason for the failure
+ * @param t the cause for the exception
+ * @throws ProxyException if hard failure is enabled on the repository causing the failure
+ */
private void processRepositoryFailure( ProxyRepository repository, String message, Throwable t )
throws ProxyException
{