summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata
diff options
context:
space:
mode:
authorEric Barboni <skygo@apache.org>2014-04-18 01:46:55 +0200
committerEric Barboni <skygo@apache.org>2014-04-18 01:46:55 +0200
commita7c6ebb10e533634d4cdd0c2baa2034979524f85 (patch)
treef068809f8284d8a788b37d2c53d75427ccca43de /archiva-modules/metadata
parentfe7e671f3bb075e22572da95cf2eddc100e0eb73 (diff)
downloadarchiva-a7c6ebb10e533634d4cdd0c2baa2034979524f85.tar.gz
archiva-a7c6ebb10e533634d4cdd0c2baa2034979524f85.zip
jdk 7 (multicatch) for-loop
remove unused package, reduce annotations (value= or locations=) move javadoc from Maven2RepsotirotyStorage to RepositoryStorage
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java
index 664103dea..1c300b020 100644
--- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java
+++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java
@@ -58,7 +58,18 @@ public interface RepositoryStorage
// FIXME: reconsider this API, do we want to expose storage format in the form of a path?
ArtifactMetadata readArtifactMetadataFromPath( String repoId, String path )
throws RepositoryStorageRuntimeException;
-
+
+ /**
+ * A relocation capable client will request the POM prior to the artifact, and will then read meta-data and do
+ * client side relocation. A simplier client (like maven 1) will only request the artifact and not use the
+ * metadatas.
+ * <p>
+ * For such clients, archiva does server-side relocation by reading itself the &lt;relocation&gt; element in
+ * metadatas and serving the expected artifact.
+ * @param managedRepository the used managed repository
+ * @param artifact the artifact reference
+ * @throws org.apache.archiva.policies.ProxyDownloadException
+ */
void applyServerSideRelocation( ManagedRepositoryContent managedRepository, ArtifactReference artifact )
throws ProxyDownloadException;