This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.configuration;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022/**
023 * Class ProxyConnectorConfiguration.
024 * 
025 * @version $Revision$ $Date$
026 */
027@SuppressWarnings( "all" )
028public class ProxyConnectorConfiguration
029    extends AbstractRepositoryConnectorConfiguration
030    implements java.io.Serializable
031{
032
033      //--------------------------/
034     //- Class/Member Variables -/
035    //--------------------------/
036
037    /**
038     * 
039     *             The order of the proxy connectors. (0 means no
040     * order specified)
041     *           .
042     */
043    private int order = 0;
044
045
046      //-----------/
047     //- Methods -/
048    //-----------/
049
050    /**
051     * Get the order of the proxy connectors. (0 means no order
052     * specified).
053     * 
054     * @return int
055     */
056    public int getOrder()
057    {
058        return this.order;
059    } //-- int getOrder()
060
061    /**
062     * Set the order of the proxy connectors. (0 means no order
063     * specified).
064     * 
065     * @param order
066     */
067    public void setOrder( int order )
068    {
069        this.order = order;
070    } //-- void setOrder( int )
071
072    
073    /**
074     * The order id for UNORDERED
075     */
076    public static final int UNORDERED = 0;
077
078    /**
079     * The policy key {@link #getPolicies()} for error handling.
080     * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
081     * for details on potential values to this policy key.
082     */
083    public static final String POLICY_PROPAGATE_ERRORS = "propagate-errors";
084
085    /**
086     * The policy key {@link #getPolicies()} for error handling when an artifact is present.
087     * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
088     * for details on potential values to this policy key.
089     */
090    public static final String POLICY_PROPAGATE_ERRORS_ON_UPDATE = "propagate-errors-on-update";
091
092    /**
093     * The policy key {@link #getPolicies()} for snapshot handling.
094     * See {@link org.apache.archiva.policies.SnapshotsPolicy}
095     * for details on potential values to this policy key.
096     */
097    public static final String POLICY_SNAPSHOTS = "snapshots";
098
099    /**
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}