|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.plexus.logging.AbstractLogEnabled org.apache.maven.artifact.manager.DefaultWagonManager
public class DefaultWagonManager
Field Summary |
---|
Fields inherited from interface org.apache.maven.artifact.manager.WagonManager |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultWagonManager()
|
Method Summary | |
---|---|
void |
addAuthenticationInfo(String repositoryId,
String username,
String password,
String privateKey,
String passphrase)
|
void |
addConfiguration(String repositoryId,
org.codehaus.plexus.util.xml.Xpp3Dom configuration)
Set the configuration for a repository |
void |
addMirror(String id,
String mirrorOf,
String url)
|
void |
addPermissionInfo(String repositoryId,
String filePermissions,
String directoryPermissions)
|
void |
addProxy(String protocol,
String host,
int port,
String username,
String password,
String nonProxyHosts)
Set the proxy used for a particular protocol. |
void |
contextualize(org.codehaus.plexus.context.Context context)
|
void |
getArtifact(Artifact artifact,
ArtifactRepository repository)
|
void |
getArtifact(Artifact artifact,
List remoteRepositories)
|
void |
getArtifactMetadata(ArtifactMetadata metadata,
ArtifactRepository repository,
File destination,
String checksumPolicy)
|
void |
getArtifactMetadataFromDeploymentRepository(ArtifactMetadata metadata,
ArtifactRepository repository,
File destination,
String checksumPolicy)
|
org.apache.maven.wagon.authentication.AuthenticationInfo |
getAuthenticationInfo(String id)
|
String |
getHttpUserAgent()
|
ArtifactRepository |
getMirror(ArtifactRepository originalRepository)
This method finds a matching mirror for the selected repository. |
ArtifactRepository |
getMirrorRepository(ArtifactRepository repository)
|
org.apache.maven.wagon.proxy.ProxyInfo |
getProxy(String protocol)
|
org.apache.maven.wagon.Wagon |
getWagon(org.apache.maven.wagon.repository.Repository repository)
Get a Wagon provider for the provided repository. |
org.apache.maven.wagon.Wagon |
getWagon(String protocol)
Get a Wagon provider that understands the protocol passed as argument. |
void |
initialize()
|
boolean |
isExternalRepo(ArtifactRepository originalRepository)
Checks the URL to see if this repository refers to an external repository |
boolean |
isOnline()
|
boolean |
matchPattern(ArtifactRepository originalRepository,
String pattern)
This method checks if the pattern matches the originalRepository. |
void |
putArtifact(File source,
Artifact artifact,
ArtifactRepository deploymentRepository)
|
void |
putArtifactMetadata(File source,
ArtifactMetadata artifactMetadata,
ArtifactRepository repository)
|
void |
registerWagons(Collection wagons,
org.codehaus.plexus.PlexusContainer extensionContainer)
|
void |
setDefaultRepositoryPermissions(org.apache.maven.wagon.repository.RepositoryPermissions defaultRepositoryPermissions)
|
void |
setDownloadMonitor(org.apache.maven.wagon.events.TransferListener downloadMonitor)
|
void |
setHttpUserAgent(String userAgent)
|
void |
setInteractive(boolean interactive)
|
void |
setOnline(boolean online)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWagonManager()
Method Detail |
---|
public org.apache.maven.wagon.Wagon getWagon(org.apache.maven.wagon.repository.Repository repository) throws org.apache.maven.wagon.UnsupportedProtocolException, WagonConfigurationException
WagonManager
getWagon
in interface WagonManager
repository
- the repository
Wagon
instance that can be used to connect to the repository
org.apache.maven.wagon.UnsupportedProtocolException
- if there is no provider able to handle the protocol
WagonConfigurationException
- if the wagon can't be configured for the repositorypublic org.apache.maven.wagon.Wagon getWagon(String protocol) throws org.apache.maven.wagon.UnsupportedProtocolException
WagonManager
getWagon
in interface WagonManager
protocol
- the protocol the Wagon
will handle
Wagon
instance able to handle the protocol provided
org.apache.maven.wagon.UnsupportedProtocolException
- if there is no provider able to handle the protocolpublic void putArtifact(File source, Artifact artifact, ArtifactRepository deploymentRepository) throws org.apache.maven.wagon.TransferFailedException
putArtifact
in interface WagonManager
org.apache.maven.wagon.TransferFailedException
public void putArtifactMetadata(File source, ArtifactMetadata artifactMetadata, ArtifactRepository repository) throws org.apache.maven.wagon.TransferFailedException
putArtifactMetadata
in interface WagonManager
org.apache.maven.wagon.TransferFailedException
public void getArtifact(Artifact artifact, List remoteRepositories) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException
getArtifact
in interface WagonManager
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
public void getArtifact(Artifact artifact, ArtifactRepository repository) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException
getArtifact
in interface WagonManager
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
public void getArtifactMetadata(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException
getArtifactMetadata
in interface WagonManager
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
public void getArtifactMetadataFromDeploymentRepository(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy) throws org.apache.maven.wagon.TransferFailedException, org.apache.maven.wagon.ResourceDoesNotExistException
getArtifactMetadataFromDeploymentRepository
in interface WagonManager
org.apache.maven.wagon.TransferFailedException
org.apache.maven.wagon.ResourceDoesNotExistException
public ArtifactRepository getMirrorRepository(ArtifactRepository repository)
getMirrorRepository
in interface WagonManager
public org.apache.maven.wagon.proxy.ProxyInfo getProxy(String protocol)
getProxy
in interface WagonManager
public org.apache.maven.wagon.authentication.AuthenticationInfo getAuthenticationInfo(String id)
getAuthenticationInfo
in interface WagonManager
public ArtifactRepository getMirror(ArtifactRepository originalRepository)
originalRepository
- See if there is a mirror for this repository.
public boolean matchPattern(ArtifactRepository originalRepository, String pattern)
originalRepository
- to compare for a match.pattern
- used for match. Currently only '*' is supported.
public boolean isExternalRepo(ArtifactRepository originalRepository)
originalRepository
-
public void addProxy(String protocol, String host, int port, String username, String password, String nonProxyHosts)
addProxy
in interface WagonManager
protocol
- the protocol (required)host
- the proxy host name (required)port
- the proxy port (required)username
- the username for the proxy, or null if there is nonepassword
- the password for the proxy, or null if there is nonenonProxyHosts
- the set of hosts not to use the proxy for. Follows Java system property format:
*.foo.com|localhost
.public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
public void setDownloadMonitor(org.apache.maven.wagon.events.TransferListener downloadMonitor)
setDownloadMonitor
in interface WagonManager
public void addAuthenticationInfo(String repositoryId, String username, String password, String privateKey, String passphrase)
addAuthenticationInfo
in interface WagonManager
public void addPermissionInfo(String repositoryId, String filePermissions, String directoryPermissions)
addPermissionInfo
in interface WagonManager
public void addMirror(String id, String mirrorOf, String url)
addMirror
in interface WagonManager
public void setOnline(boolean online)
setOnline
in interface WagonManager
public boolean isOnline()
isOnline
in interface WagonManager
public void setInteractive(boolean interactive)
setInteractive
in interface WagonManager
public void registerWagons(Collection wagons, org.codehaus.plexus.PlexusContainer extensionContainer)
registerWagons
in interface WagonManager
public void addConfiguration(String repositoryId, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
WagonManager
addConfiguration
in interface WagonManager
repositoryId
- id of the repository to set the configuration toconfiguration
- dom tree of the xml with the configuration for the Wagon
public void setDefaultRepositoryPermissions(org.apache.maven.wagon.repository.RepositoryPermissions defaultRepositoryPermissions)
setDefaultRepositoryPermissions
in interface WagonManager
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public void setHttpUserAgent(String userAgent)
public String getHttpUserAgent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |