aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base/archiva-configuration/src
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-base/archiva-configuration/src')
-rw-r--r--archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ConfigurationNames.java31
1 files changed, 28 insertions, 3 deletions
diff --git a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ConfigurationNames.java b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ConfigurationNames.java
index 7fb925217..589a511f5 100644
--- a/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ConfigurationNames.java
+++ b/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ConfigurationNames.java
@@ -36,6 +36,8 @@ public class ConfigurationNames
private static final Set repositories = new HashSet();
+ private static final Set proxyConnectors = new HashSet();
+
static
{
repositories.add( "repositories" );
@@ -67,6 +69,19 @@ public class ConfigurationNames
repositoryScanning.add( "goodConsumer" );
repositoryScanning.add( "badConsumers" );
repositoryScanning.add( "badConsumer" );
+
+ proxyConnectors.add( "proxyConnectors" );
+ proxyConnectors.add( "proxyConnector" );
+ proxyConnectors.add( "sourceRepoId" );
+ proxyConnectors.add( "targetRepoId" );
+ proxyConnectors.add( "proxyId" );
+ proxyConnectors.add( "snapshotsPolicy" );
+ proxyConnectors.add( "releasePolicy" );
+ proxyConnectors.add( "checksumPolicy" );
+ proxyConnectors.add( "whiteListPatterns" );
+ proxyConnectors.add( "whiteListPattern" );
+ proxyConnectors.add( "blackListPatterns" );
+ proxyConnectors.add( "blackListPattern" );
}
public static boolean isNetworkProxy( String propertyName )
@@ -88,17 +103,27 @@ public class ConfigurationNames
return repositoryScanning.contains( propertyName );
}
-
+
public static boolean isRepositories( String propertyName )
{
- if( empty(propertyName))
+ if ( empty( propertyName ) )
{
return false;
}
-
+
return repositories.contains( propertyName );
}
+ public static boolean isProxyConnector( String propertyName )
+ {
+ if ( empty( propertyName ) )
+ {
+ return false;
+ }
+
+ return proxyConnectors.contains( propertyName );
+ }
+
private static boolean empty( String name )
{
if ( name == null )