org.apache.maven.artifact.repository
Class MavenArtifactRepository

java.lang.Object
  extended by org.apache.maven.artifact.repository.MavenArtifactRepository
All Implemented Interfaces:
ArtifactRepository
Direct Known Subclasses:
DelegatingLocalArtifactRepository, LocalArtifactRepository

public class MavenArtifactRepository
extends java.lang.Object
implements ArtifactRepository


Constructor Summary
MavenArtifactRepository()
           
MavenArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
          Create a remote download repository.
 
Method Summary
protected static
<T> boolean
eq(T s1, T s2)
           
 boolean equals(java.lang.Object obj)
           
 Artifact find(Artifact artifact)
           
 java.util.List<java.lang.String> findVersions(Artifact artifact)
           
 Authentication getAuthentication()
           
 java.lang.String getBasedir()
           
 java.lang.String getId()
           
 java.lang.String getKey()
           
 ArtifactRepositoryLayout getLayout()
           
 java.lang.String getProtocol()
           
 Proxy getProxy()
           
 ArtifactRepositoryPolicy getReleases()
           
 ArtifactRepositoryPolicy getSnapshots()
           
 java.lang.String getUrl()
           
 int hashCode()
           
 boolean isBlacklisted()
           
 boolean isProjectAware()
           
 boolean isUniqueVersion()
           
 java.lang.String pathOf(Artifact artifact)
           
 java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
           
 java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
           
 void setAuthentication(Authentication authentication)
           
 void setBlacklisted(boolean blackListed)
           
 void setId(java.lang.String id)
           
 void setLayout(ArtifactRepositoryLayout layout)
           
 void setProxy(Proxy proxy)
           
 void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
           
 void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
           
 void setUrl(java.lang.String url)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenArtifactRepository

public MavenArtifactRepository()

MavenArtifactRepository

public MavenArtifactRepository(java.lang.String id,
                               java.lang.String url,
                               ArtifactRepositoryLayout layout,
                               ArtifactRepositoryPolicy snapshots,
                               ArtifactRepositoryPolicy releases)
Create a remote download repository.

Parameters:
id - the unique identifier of the repository
url - the URL of the repository
layout - the layout of the repository
snapshots - the policies to use for snapshots
releases - the policies to use for releases
Method Detail

pathOf

public java.lang.String pathOf(Artifact artifact)
Specified by:
pathOf in interface ArtifactRepository

pathOfRemoteRepositoryMetadata

public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
Specified by:
pathOfRemoteRepositoryMetadata in interface ArtifactRepository

pathOfLocalRepositoryMetadata

public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata,
                                                      ArtifactRepository repository)
Specified by:
pathOfLocalRepositoryMetadata in interface ArtifactRepository

setLayout

public void setLayout(ArtifactRepositoryLayout layout)
Specified by:
setLayout in interface ArtifactRepository

getLayout

public ArtifactRepositoryLayout getLayout()
Specified by:
getLayout in interface ArtifactRepository

setSnapshotUpdatePolicy

public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
Specified by:
setSnapshotUpdatePolicy in interface ArtifactRepository

getSnapshots

public ArtifactRepositoryPolicy getSnapshots()
Specified by:
getSnapshots in interface ArtifactRepository

setReleaseUpdatePolicy

public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
Specified by:
setReleaseUpdatePolicy in interface ArtifactRepository

getReleases

public ArtifactRepositoryPolicy getReleases()
Specified by:
getReleases in interface ArtifactRepository

getKey

public java.lang.String getKey()
Specified by:
getKey in interface ArtifactRepository

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

find

public Artifact find(Artifact artifact)
Specified by:
find in interface ArtifactRepository

findVersions

public java.util.List<java.lang.String> findVersions(Artifact artifact)
Specified by:
findVersions in interface ArtifactRepository

getId

public java.lang.String getId()
Specified by:
getId in interface ArtifactRepository

getUrl

public java.lang.String getUrl()
Specified by:
getUrl in interface ArtifactRepository

getBasedir

public java.lang.String getBasedir()
Specified by:
getBasedir in interface ArtifactRepository

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface ArtifactRepository

setId

public void setId(java.lang.String id)
Specified by:
setId in interface ArtifactRepository

setUrl

public void setUrl(java.lang.String url)
Specified by:
setUrl in interface ArtifactRepository

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

eq

protected static <T> boolean eq(T s1,
                                T s2)

getAuthentication

public Authentication getAuthentication()
Specified by:
getAuthentication in interface ArtifactRepository

setAuthentication

public void setAuthentication(Authentication authentication)
Specified by:
setAuthentication in interface ArtifactRepository

getProxy

public Proxy getProxy()
Specified by:
getProxy in interface ArtifactRepository

setProxy

public void setProxy(Proxy proxy)
Specified by:
setProxy in interface ArtifactRepository

isBlacklisted

public boolean isBlacklisted()
Specified by:
isBlacklisted in interface ArtifactRepository

setBlacklisted

public void setBlacklisted(boolean blackListed)
Specified by:
setBlacklisted in interface ArtifactRepository

isUniqueVersion

public boolean isUniqueVersion()
Specified by:
isUniqueVersion in interface ArtifactRepository

isProjectAware

public boolean isProjectAware()
Specified by:
isProjectAware in interface ArtifactRepository


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.