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