1 package org.apache.archiva.admin.repository.proxyconnector;
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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
21 import org.apache.archiva.admin.repository.AbstractRepositoryConnector;
23 import java.io.Serializable;
26 * @author Olivier Lamy
29 public class ProxyConnector
30 extends AbstractRepositoryConnector
31 implements Serializable
34 * The order id for UNORDERED
36 public static final int UNORDERED = 0;
39 * The policy key {@link #getPolicies()} for error handling.
40 * See {@link org.apache.maven.archiva.policies.DownloadErrorPolicy}
41 * for details on potential values to this policy key.
43 public static final String POLICY_PROPAGATE_ERRORS = "propagate-errors";
46 * The policy key {@link #getPolicies()} for error handling when an artifact is present.
47 * See {@link org.apache.maven.archiva.policies.DownloadErrorPolicy}
48 * for details on potential values to this policy key.
50 public static final String POLICY_PROPAGATE_ERRORS_ON_UPDATE = "propagate-errors-on-update";
53 * The policy key {@link #getPolicies()} for snapshot handling.
54 * See {@link org.apache.maven.archiva.policies.SnapshotsPolicy}
55 * for details on potential values to this policy key.
57 public static final String POLICY_SNAPSHOTS = "snapshots";
60 * The policy key {@link #getPolicies()} for releases handling.
61 * See {@link org.apache.maven.archiva.policies.ReleasesPolicy}
62 * for details on potential values to this policy key.
64 public static final String POLICY_RELEASES = "releases";
67 * The policy key {@link #getPolicies()} for checksum handling.
68 * See {@link org.apache.maven.archiva.policies.ChecksumPolicy}
69 * for details on potential values to this policy key.
71 public static final String POLICY_CHECKSUM = "checksum";
74 * The policy key {@link #getPolicies()} for cache-failures handling.
75 * See {@link org.apache.maven.archiva.policies.CachedFailuresPolicy}
76 * for details on potential values to this policy key.
78 public static final String POLICY_CACHE_FAILURES = "cache-failures";
82 * The order of the proxy connectors. (0 means no order specified)
85 private int order = 0;
88 * Get the order of the proxy connectors. (0 means no order specified)
98 * Set the order of the proxy connectors. (0 means no order specified)
101 public void setOrder( int order )
107 public String toString()
109 final StringBuilder sb = new StringBuilder();
110 sb.append( "ProxyConnector" );
111 sb.append( "{order=" ).append( order );
113 sb.append( super.toString() );
114 return sb.toString();