diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-04-24 05:41:27 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-04-24 05:41:27 +0000 |
commit | b4d57ec3248baba3280ebb4a4378de6a39e59237 (patch) | |
tree | 99c59f22d50fa241b4c3486b5db247e776d0d59e /archiva-base/archiva-configuration/src | |
parent | c5839cb7f11a01b54db926d5f1159db6ff28bf69 (diff) | |
download | archiva-b4d57ec3248baba3280ebb4a4378de6a39e59237.tar.gz archiva-b4d57ec3248baba3280ebb4a4378de6a39e59237.zip |
* Using ReportingManager in webapp.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@531749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base/archiva-configuration/src')
-rw-r--r-- | archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/ConfigurationNames.java | 31 |
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 ) |