1 package org.apache.maven.archiva.proxy;
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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
22 import org.apache.maven.archiva.model.ArchivaRepository;
23 import org.apache.maven.archiva.repository.connector.RepositoryConnector;
25 import java.util.List;
28 * This represents a connector for a repository to repository proxy.
30 * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
33 public class ProxyConnector
34 implements RepositoryConnector
36 private ArchivaRepository sourceRepository;
38 private ArchivaRepository targetRepository;
40 private List blacklist;
42 private List whitelist;
44 private String snapshotsPolicy;
46 private String releasesPolicy;
48 private String checksumPolicy;
50 private String proxyId;
52 public List getBlacklist()
57 public void setBlacklist( List blacklist )
59 this.blacklist = blacklist;
62 public ArchivaRepository getSourceRepository()
64 return sourceRepository;
67 public void setSourceRepository( ArchivaRepository sourceRepository )
69 this.sourceRepository = sourceRepository;
72 public ArchivaRepository getTargetRepository()
74 return targetRepository;
77 public void setTargetRepository( ArchivaRepository targetRepository )
79 this.targetRepository = targetRepository;
82 public List getWhitelist()
87 public void setWhitelist( List whitelist )
89 this.whitelist = whitelist;
92 public String getChecksumPolicy()
94 return checksumPolicy;
97 public void setChecksumPolicy( String failurePolicy )
99 this.checksumPolicy = failurePolicy;
102 public String getReleasesPolicy()
104 return releasesPolicy;
107 public void setReleasesPolicy( String releasesPolicy )
109 this.releasesPolicy = releasesPolicy;
112 public String getSnapshotsPolicy()
114 return snapshotsPolicy;
117 public void setSnapshotsPolicy( String snapshotsPolicy )
119 this.snapshotsPolicy = snapshotsPolicy;
122 public String getProxyId()
127 public void setProxyId( String proxyId )
129 this.proxyId = proxyId;