You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProxyConnectorRuleConfiguration.java 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. package org.apache.archiva.configuration;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. /**
  21. * Class ProxyConnectorRuleConfiguration.
  22. *
  23. * @version $Revision$ $Date$
  24. */
  25. @SuppressWarnings( "all" )
  26. public class ProxyConnectorRuleConfiguration
  27. implements java.io.Serializable
  28. {
  29. //--------------------------/
  30. //- Class/Member Variables -/
  31. //--------------------------/
  32. /**
  33. *
  34. * The type if this rule: whiteList, blackList
  35. * etc..
  36. *
  37. */
  38. private String ruleType;
  39. /**
  40. *
  41. * The pattern for this rule: whiteList, blackList
  42. * etc..
  43. *
  44. */
  45. private String pattern;
  46. /**
  47. * Field proxyConnectors.
  48. */
  49. private java.util.List<ProxyConnectorConfiguration> proxyConnectors;
  50. //-----------/
  51. //- Methods -/
  52. //-----------/
  53. /**
  54. * Method addProxyConnector.
  55. *
  56. * @param proxyConnectorConfiguration
  57. */
  58. public void addProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration )
  59. {
  60. getProxyConnectors().add( proxyConnectorConfiguration );
  61. } //-- void addProxyConnector( ProxyConnectorConfiguration )
  62. /**
  63. * Get the pattern for this rule: whiteList, blackList etc..
  64. *
  65. * @return String
  66. */
  67. public String getPattern()
  68. {
  69. return this.pattern;
  70. } //-- String getPattern()
  71. /**
  72. * Method getProxyConnectors.
  73. *
  74. * @return List
  75. */
  76. public java.util.List<ProxyConnectorConfiguration> getProxyConnectors()
  77. {
  78. if ( this.proxyConnectors == null )
  79. {
  80. this.proxyConnectors = new java.util.ArrayList<ProxyConnectorConfiguration>();
  81. }
  82. return this.proxyConnectors;
  83. } //-- java.util.List<ProxyConnectorConfiguration> getProxyConnectors()
  84. /**
  85. * Get the type if this rule: whiteList, blackList etc..
  86. *
  87. * @return String
  88. */
  89. public String getRuleType()
  90. {
  91. return this.ruleType;
  92. } //-- String getRuleType()
  93. /**
  94. * Method removeProxyConnector.
  95. *
  96. * @param proxyConnectorConfiguration
  97. */
  98. public void removeProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration )
  99. {
  100. getProxyConnectors().remove( proxyConnectorConfiguration );
  101. } //-- void removeProxyConnector( ProxyConnectorConfiguration )
  102. /**
  103. * Set the pattern for this rule: whiteList, blackList etc..
  104. *
  105. * @param pattern
  106. */
  107. public void setPattern( String pattern )
  108. {
  109. this.pattern = pattern;
  110. } //-- void setPattern( String )
  111. /**
  112. * Set associated proxyConnectors configuration.
  113. *
  114. * @param proxyConnectors
  115. */
  116. public void setProxyConnectors( java.util.List<ProxyConnectorConfiguration> proxyConnectors )
  117. {
  118. this.proxyConnectors = proxyConnectors;
  119. } //-- void setProxyConnectors( java.util.List )
  120. /**
  121. * Set the type if this rule: whiteList, blackList etc..
  122. *
  123. * @param ruleType
  124. */
  125. public void setRuleType( String ruleType )
  126. {
  127. this.ruleType = ruleType;
  128. } //-- void setRuleType( String )
  129. }