aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-05-09 22:58:14 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-05-09 22:58:14 +0200
commit7adddbe141186225bc33e918727ceb3bed6646f3 (patch)
tree1446416da9955559c0f363963c675c42b5ac8d35 /archiva-modules/archiva-base
parent79c77136b99e4b7b06fad7c8d6e92d38d37a187f (diff)
downloadarchiva-7adddbe141186225bc33e918727ceb3bed6646f3.tar.gz
archiva-7adddbe141186225bc33e918727ceb3bed6646f3.zip
Changing maven implementation to new RequestInfo interface
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepository.java7
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/Repository.java1
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRequestInfo.java2
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/BasicManagedRepository.java5
4 files changed, 14 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepository.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepository.java
index 1dea02bb1..3acd16198 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepository.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepository.java
@@ -47,4 +47,11 @@ public interface ManagedRepository extends Repository {
*/
Set<ReleaseScheme> getActiveReleaseSchemes();
+
+ /**
+ * Returns the request info object, which you can use for gathering information from the web request path.
+ * @return Instance of a request info object that corresponds to this repository
+ */
+ RepositoryRequestInfo getRequestInfo();
+
}
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/Repository.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/Repository.java
index f80f94b0d..384639821 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/Repository.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/Repository.java
@@ -180,4 +180,5 @@ public interface Repository extends RepositoryEventHandler {
*/
void close();
+
}
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRequestInfo.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRequestInfo.java
index 043c09cce..ecc97b844 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRequestInfo.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRequestInfo.java
@@ -118,7 +118,7 @@ public interface RepositoryRequestInfo
* @return the adjusted (to native) path.
* @throws LayoutException if the path cannot be parsed.
*/
- void toNativePath( String requestPath);
+ String toNativePath( String requestPath) throws LayoutException;
/**
* Extension method that allows to provide different features that are not supported by all
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/BasicManagedRepository.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/BasicManagedRepository.java
index d424862a9..d45daead6 100644
--- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/BasicManagedRepository.java
+++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/BasicManagedRepository.java
@@ -80,4 +80,9 @@ public class BasicManagedRepository extends AbstractManagedRepository
return CAPABILITIES;
}
+
+ @Override
+ public RepositoryRequestInfo getRequestInfo() {
+ return null;
+ }
}