1 package org.apache.archiva.admin.model.beans;
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.model.AbstractRepositoryConnector;
23 import javax.xml.bind.annotation.XmlRootElement;
24 import java.io.Serializable;
27 * @author Olivier Lamy
30 @XmlRootElement( name = "proxyConnector" )
31 public class ProxyConnector
32 extends AbstractRepositoryConnector
33 implements Serializable
36 * The order id for UNORDERED
38 public static final int UNORDERED = 0;
41 * The policy key {@link #getPolicies()} for error handling.
42 * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
43 * for details on potential values to this policy key.
45 public static final String POLICY_PROPAGATE_ERRORS = "propagate-errors";
48 * The policy key {@link #getPolicies()} for error handling when an artifact is present.
49 * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
50 * for details on potential values to this policy key.
52 public static final String POLICY_PROPAGATE_ERRORS_ON_UPDATE = "propagate-errors-on-update";
55 * The policy key {@link #getPolicies()} for snapshot handling.
56 * See {@link org.apache.archiva.policies.SnapshotsPolicy}
57 * for details on potential values to this policy key.
59 public static final String POLICY_SNAPSHOTS = "snapshots";
62 * The policy key {@link #getPolicies()} for releases handling.
63 * See {@link org.apache.archiva.policies.ReleasesPolicy}
64 * for details on potential values to this policy key.
66 public static final String POLICY_RELEASES = "releases";
69 * The policy key {@link #getPolicies()} for checksum handling.
70 * See {@link org.apache.archiva.policies.ChecksumPolicy}
71 * for details on potential values to this policy key.
73 public static final String POLICY_CHECKSUM = "checksum";
76 * The policy key {@link #getPolicies()} for cache-failures handling.
77 * See {@link org.apache.archiva.policies.CachedFailuresPolicy}
78 * for details on potential values to this policy key.
80 public static final String POLICY_CACHE_FAILURES = "cache-failures";
84 * The order of the proxy connectors. (0 means no order specified)
87 private int order = 0;
90 * Get the order of the proxy connectors. (0 means no order specified)
100 * Set the order of the proxy connectors. (0 means no order specified)
103 public void setOrder( int order )
109 public String toString()
111 final StringBuilder sb = new StringBuilder();
112 sb.append( "ProxyConnector" );
113 sb.append( "{order=" ).append( order );
115 sb.append( super.toString() );
116 return sb.toString();