This project has retired. For details please refer to its Attic page.
ProxyConnectorConfiguration 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 ProxyConnectorConfiguration.
24   * 
25   * @version $Revision$ $Date$
26   */
27  @SuppressWarnings( "all" )
28  public class ProxyConnectorConfiguration
29      extends AbstractRepositoryConnectorConfiguration
30      implements java.io.Serializable
31  {
32  
33        //--------------------------/
34       //- Class/Member Variables -/
35      //--------------------------/
36  
37      /**
38       * 
39       *             The order of the proxy connectors. (0 means no
40       * order specified)
41       *           .
42       */
43      private int order = 0;
44  
45  
46        //-----------/
47       //- Methods -/
48      //-----------/
49  
50      /**
51       * Get the order of the proxy connectors. (0 means no order
52       * specified).
53       * 
54       * @return int
55       */
56      public int getOrder()
57      {
58          return this.order;
59      } //-- int getOrder()
60  
61      /**
62       * Set the order of the proxy connectors. (0 means no order
63       * specified).
64       * 
65       * @param order
66       */
67      public void setOrder( int order )
68      {
69          this.order = order;
70      } //-- void setOrder( int )
71  
72      
73      /**
74       * The order id for UNORDERED
75       */
76      public static final int UNORDERED = 0;
77  
78      /**
79       * The policy key {@link #getPolicies()} for error handling.
80       * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
81       * for details on potential values to this policy key.
82       */
83      public static final String POLICY_PROPAGATE_ERRORS = "propagate-errors";
84  
85      /**
86       * The policy key {@link #getPolicies()} for error handling when an artifact is present.
87       * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
88       * for details on potential values to this policy key.
89       */
90      public static final String POLICY_PROPAGATE_ERRORS_ON_UPDATE = "propagate-errors-on-update";
91  
92      /**
93       * The policy key {@link #getPolicies()} for snapshot handling.
94       * See {@link org.apache.archiva.policies.SnapshotsPolicy}
95       * for details on potential values to this policy key.
96       */
97      public static final String POLICY_SNAPSHOTS = "snapshots";
98  
99      /**
100      * The policy key {@link #getPolicies()} for releases handling.
101      * See {@link org.apache.archiva.policies.ReleasesPolicy}
102      * for details on potential values to this policy key.
103      */
104     public static final String POLICY_RELEASES = "releases";
105 
106     /**
107      * The policy key {@link #getPolicies()} for checksum handling.
108      * See {@link org.apache.archiva.policies.ChecksumPolicy}
109      * for details on potential values to this policy key.
110      */
111     public static final String POLICY_CHECKSUM = "checksum";
112 
113     /**
114      * The policy key {@link #getPolicies()} for cache-failures handling.
115      * See {@link org.apache.archiva.policies.CachedFailuresPolicy}
116      * for details on potential values to this policy key.
117      */
118     public static final String POLICY_CACHE_FAILURES = "cache-failures";
119           
120 }