org.apache.archiva.proxy.model
Interface RepositoryProxyConnectors

All Known Implementing Classes:
DefaultRepositoryProxyConnectors

public interface RepositoryProxyConnectors

Handler for potential repository proxy connectors.


Method Summary
 File fetchFromProxies(ManagedRepositoryContent repository, ArtifactReference artifact)
          Performs the artifact fetch operation against the target repositories of the provided source repository.
 File fetchFromProxies(ManagedRepositoryContent managedRepository, String path)
          Performs the fetch operation against the target repositories of the provided source repository.
 File fetchMetatadaFromProxies(ManagedRepositoryContent repository, String logicalPath)
          Performs the metadata fetch operation against the target repositories of the provided source repository.
 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

File fetchFromProxies(ManagedRepositoryContent repository,
                      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

File fetchMetatadaFromProxies(ManagedRepositoryContent repository,
                              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)
logicalPath - the metadata to fetch.
Returns:
the file that was obtained, or null if no content was obtained

fetchFromProxies

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

Parameters:
managedRepository - 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

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.


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.