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

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