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(org.apache.maven.archiva.repository.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(org.apache.maven.archiva.repository.ManagedRepositoryContent repository, org.apache.maven.archiva.model.ProjectReference metadata)
          Performs the metadata fetch operation against the target repositories of the provided source repository.
 java.io.File fetchFromProxies(org.apache.maven.archiva.repository.ManagedRepositoryContent repository, org.apache.maven.archiva.model.VersionedReference metadata)
          Performs the metadata fetch operation against the target repositories of the provided source repository.
 java.util.List<ProxyConnector> getProxyConnectors(org.apache.maven.archiva.repository.ManagedRepositoryContent repository)
          Get the List of ProxyConnector objects of the source repository.
 boolean hasProxies(org.apache.maven.archiva.repository.ManagedRepositoryContent repository)
          Tests to see if the provided repository is a source repository for any ProxyConnector objects.
 

Method Detail

fetchFromProxies

java.io.File fetchFromProxies(org.apache.maven.archiva.repository.ManagedRepositoryContent repository,
                              org.apache.maven.archiva.model.ArtifactReference artifact)
                              throws org.apache.maven.archiva.policies.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:
true if the fetch operation succeeded in obtaining content, false if no content was obtained.
Throws:
org.apache.maven.archiva.policies.ProxyDownloadException - if there was a problem fetching the content from the target repositories.

fetchFromProxies

java.io.File fetchFromProxies(org.apache.maven.archiva.repository.ManagedRepositoryContent repository,
                              org.apache.maven.archiva.model.VersionedReference metadata)
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:
true if the fetch operation succeeded in obtaining content, false if no content was obtained.

fetchFromProxies

java.io.File fetchFromProxies(org.apache.maven.archiva.repository.ManagedRepositoryContent repository,
                              org.apache.maven.archiva.model.ProjectReference metadata)
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:
true if the fetch operation succeeded in obtaining content, false if no content was obtained.

getProxyConnectors

java.util.List<ProxyConnector> getProxyConnectors(org.apache.maven.archiva.repository.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(org.apache.maven.archiva.repository.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.