KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > artifact > manager > WagonManager


1 package org.apache.maven.artifact.manager;
2
3 /*
4  * Copyright 2001-2005 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.artifact.metadata.ArtifactMetadata;
21 import org.apache.maven.artifact.repository.ArtifactRepository;
22 import org.apache.maven.wagon.ResourceDoesNotExistException;
23 import org.apache.maven.wagon.TransferFailedException;
24 import org.apache.maven.wagon.UnsupportedProtocolException;
25 import org.apache.maven.wagon.Wagon;
26 import org.apache.maven.wagon.authentication.AuthenticationInfo;
27 import org.apache.maven.wagon.events.TransferListener;
28 import org.apache.maven.wagon.proxy.ProxyInfo;
29 import org.codehaus.plexus.util.xml.Xpp3Dom;
30
31 import java.io.File JavaDoc;
32 import java.util.List JavaDoc;
33
34 /**
35  * @author <a HREF="michal.maczka@dimatics.com">Michal Maczka </a>
36  * @version $Id: WagonManager.java 320827 2005-10-13 17:49:41Z jdcasey $
37  */

38 public interface WagonManager
39 {
40     String JavaDoc ROLE = WagonManager.class.getName();
41
42     Wagon getWagon( String JavaDoc protocol )
43         throws UnsupportedProtocolException;
44
45     void getArtifact( Artifact artifact, List JavaDoc remoteRepositories )
46         throws TransferFailedException, ResourceDoesNotExistException;
47
48     void getArtifact( Artifact artifact, ArtifactRepository repository )
49         throws TransferFailedException, ResourceDoesNotExistException;
50
51     void putArtifact( File JavaDoc source, Artifact artifact, ArtifactRepository deploymentRepository )
52         throws TransferFailedException;
53
54     void putArtifactMetadata( File JavaDoc source, ArtifactMetadata artifactMetadata, ArtifactRepository repository )
55         throws TransferFailedException;
56
57     void getArtifactMetadata( ArtifactMetadata metadata, ArtifactRepository remoteRepository, File JavaDoc destination,
58                               String JavaDoc checksumPolicy )
59         throws TransferFailedException, ResourceDoesNotExistException;
60     
61     void setOnline( boolean online );
62     
63     boolean isOnline();
64
65     void addProxy( String JavaDoc protocol, String JavaDoc host, int port, String JavaDoc username, String JavaDoc password, String JavaDoc nonProxyHosts );
66
67     void addAuthenticationInfo( String JavaDoc repositoryId, String JavaDoc username, String JavaDoc password, String JavaDoc privateKey,
68                                 String JavaDoc passphrase );
69
70     void addMirror( String JavaDoc id, String JavaDoc mirrorOf, String JavaDoc url );
71
72     void setDownloadMonitor( TransferListener downloadMonitor );
73
74     void addPermissionInfo( String JavaDoc repositoryId, String JavaDoc filePermissions, String JavaDoc directoryPermissions );
75
76     ProxyInfo getProxy( String JavaDoc protocol );
77
78     AuthenticationInfo getAuthenticationInfo( String JavaDoc id );
79
80     void addConfiguration( String JavaDoc repositoryId, Xpp3Dom configuration );
81     
82     void setInteractive( boolean interactive );
83 }
Popular Tags