org.apache.maven.repository.legacy
Class DefaultWagonManager

java.lang.Object
  extended by org.apache.maven.repository.legacy.DefaultWagonManager
All Implemented Interfaces:
WagonManager
Direct Known Subclasses:
DefaultWagonManager

@Component(role=WagonManager.class)
public class DefaultWagonManager
extends Object
implements WagonManager


Constructor Summary
DefaultWagonManager()
           
 
Method Summary
 void getArtifact(Artifact artifact, ArtifactRepository repository, TransferListener downloadMonitor, boolean force)
           
 void getArtifact(Artifact artifact, List<ArtifactRepository> remoteRepositories, TransferListener downloadMonitor, boolean force)
           
 void getArtifactMetadata(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy)
           
 void getArtifactMetadataFromDeploymentRepository(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy)
           
 void getRemoteFile(ArtifactRepository repository, File destination, String remotePath, TransferListener downloadMonitor, String checksumPolicy, boolean force)
           
 Wagon getWagon(Repository repository)
          Deprecated. 
 Wagon getWagon(String protocol)
          Deprecated. 
 void putArtifact(File source, Artifact artifact, ArtifactRepository deploymentRepository, TransferListener downloadMonitor)
           
 void putArtifactMetadata(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository)
           
 void putRemoteFile(ArtifactRepository repository, File source, String remotePath, TransferListener downloadMonitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWagonManager

public DefaultWagonManager()
Method Detail

getArtifact

public void getArtifact(Artifact artifact,
                        ArtifactRepository repository,
                        TransferListener downloadMonitor,
                        boolean force)
                 throws TransferFailedException,
                        ResourceDoesNotExistException
Specified by:
getArtifact in interface WagonManager
Throws:
TransferFailedException
ResourceDoesNotExistException

getArtifact

public void getArtifact(Artifact artifact,
                        List<ArtifactRepository> remoteRepositories,
                        TransferListener downloadMonitor,
                        boolean force)
                 throws TransferFailedException,
                        ResourceDoesNotExistException
Specified by:
getArtifact in interface WagonManager
Throws:
TransferFailedException
ResourceDoesNotExistException

getArtifactMetadata

public void getArtifactMetadata(ArtifactMetadata metadata,
                                ArtifactRepository repository,
                                File destination,
                                String checksumPolicy)
                         throws TransferFailedException,
                                ResourceDoesNotExistException
Specified by:
getArtifactMetadata in interface WagonManager
Throws:
TransferFailedException
ResourceDoesNotExistException

getArtifactMetadataFromDeploymentRepository

public void getArtifactMetadataFromDeploymentRepository(ArtifactMetadata metadata,
                                                        ArtifactRepository repository,
                                                        File destination,
                                                        String checksumPolicy)
                                                 throws TransferFailedException,
                                                        ResourceDoesNotExistException
Specified by:
getArtifactMetadataFromDeploymentRepository in interface WagonManager
Throws:
TransferFailedException
ResourceDoesNotExistException

getRemoteFile

public void getRemoteFile(ArtifactRepository repository,
                          File destination,
                          String remotePath,
                          TransferListener downloadMonitor,
                          String checksumPolicy,
                          boolean force)
                   throws TransferFailedException,
                          ResourceDoesNotExistException
Specified by:
getRemoteFile in interface WagonManager
Throws:
TransferFailedException
ResourceDoesNotExistException

putArtifact

public void putArtifact(File source,
                        Artifact artifact,
                        ArtifactRepository deploymentRepository,
                        TransferListener downloadMonitor)
                 throws TransferFailedException
Specified by:
putArtifact in interface WagonManager
Throws:
TransferFailedException

putArtifactMetadata

public void putArtifactMetadata(File source,
                                ArtifactMetadata artifactMetadata,
                                ArtifactRepository repository)
                         throws TransferFailedException
Specified by:
putArtifactMetadata in interface WagonManager
Throws:
TransferFailedException

putRemoteFile

public void putRemoteFile(ArtifactRepository repository,
                          File source,
                          String remotePath,
                          TransferListener downloadMonitor)
                   throws TransferFailedException
Specified by:
putRemoteFile in interface WagonManager
Throws:
TransferFailedException

getWagon

@Deprecated
public Wagon getWagon(Repository repository)
               throws UnsupportedProtocolException
Deprecated. 

Specified by:
getWagon in interface WagonManager
Throws:
UnsupportedProtocolException

getWagon

@Deprecated
public Wagon getWagon(String protocol)
               throws UnsupportedProtocolException
Deprecated. 

Specified by:
getWagon in interface WagonManager
Throws:
UnsupportedProtocolException


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.