This project has retired. For details please refer to its Attic page.
RepositoryProxyConnectors

org.apache.maven.archiva.proxy
Interface RepositoryProxyConnectors

Package class diagram package RepositoryProxyConnectors
All Known Implementing Classes:
DefaultRepositoryProxyConnectors

public interface RepositoryProxyConnectors

Handler for potential repository proxy connectors.


Method Summary
 java.io.File fetchFromProxies(ManagedRepositoryContent repository, org.apache.maven.archiva.model.ArtifactReference artifact)
          Performs the artifact fetch operation against the target repositories of the provided source repository.
 java.io.File fetchFromProxies(ManagedRepositoryContent managedRepository, java.lang.String path)
          Performs the fetch operation against the target repositories of the provided source repository.
 java.io.File fetchMetatadaFromProxies(ManagedRepositoryContent repository, java.lang.String logicalPath)
          Performs the metadata fetch operation against the target repositories of the provided source repository.
 java.util.List<ProxyConnector> getProxyConnectors(ManagedRepositoryContent repository)
          Get the List of ProxyConnector objects of the source repository.
 boolean hasProxies(ManagedRepositoryContent repository)
          Tests to see if the provided repository is a source repository for any ProxyConnector objects.
 

Method Detail

fetchFromProxies

java.io.File fetchFromProxies(ManagedRepositoryContent repository,
                              org.apache.maven.archiva.model.ArtifactReference artifact)
                              throws ProxyDownloadException
Performs the artifact fetch operation against the target repositories of the provided source repository. If the artifact is found, it is downloaded and placed into the source repository filesystem.

Parameters:
repository - the source repository to use. (must be a managed repository)
artifact - the artifact to fetch.
Returns:
the file that was obtained, or null if no content was obtained
Throws:
ProxyDownloadException - if there was a problem fetching the content from the target repositories.

fetchMetatadaFromProxies

java.io.File fetchMetatadaFromProxies(ManagedRepositoryContent repository,
                                      java.lang.String logicalPath)
Performs the metadata fetch operation against the target repositories of the provided source repository. If the metadata is found, it is downloaded and placed into the source repository filesystem.

Parameters:
repository - the source repository to use. (must be a managed repository)
metadata - the metadata to fetch.
Returns:
the file that was obtained, or null if no content was obtained

fetchFromProxies

java.io.File fetchFromProxies(ManagedRepositoryContent managedRepository,
                              java.lang.String path)
Performs the fetch operation against the target repositories of the provided source repository.

Parameters:
repository - the source repository to use. (must be a managed repository)
path - the path of the resource to fetch
Returns:
the file that was obtained, or null if no content was obtained

getProxyConnectors

java.util.List<ProxyConnector> getProxyConnectors(ManagedRepositoryContent repository)
Get the List of ProxyConnector objects of the source repository.

Parameters:
repository - the source repository to look for.
Returns:
the List of ProxyConnector objects.

hasProxies

boolean hasProxies(ManagedRepositoryContent repository)
Tests to see if the provided repository is a source repository for any ProxyConnector objects.

Parameters:
repository - the source repository to look for.
Returns:
true if there are proxy connectors that use the provided repository as a source repository.