Interface RepositoryRequest
- All Known Subinterfaces:
 MetadataResolutionRequest
- All Known Implementing Classes:
 ArtifactResolutionRequest,DefaultMetadataResolutionRequest,DefaultRepositoryRequest
public interface RepositoryRequest
Collects basic settings to access the repository system.
- 
Method Summary
Modifier and TypeMethodDescriptionGets the local repository to use.Gets the remote repositories to use.booleanIndicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.booleanIndicates whether network access to remote repositories has been disabled.setForceUpdate(boolean forceUpdate) Enables/disabled forced checks for updated artifacts/metadata on remote repositories.setLocalRepository(ArtifactRepository localRepository) Sets the local repository to use.setOffline(boolean offline) Enables/disables network access to remote repositories.setRemoteRepositories(List<ArtifactRepository> remoteRepositories) Sets the remote repositories to use. 
- 
Method Details
- 
isOffline
boolean isOffline()Indicates whether network access to remote repositories has been disabled.- Returns:
 trueif remote access has been disabled,falseotherwise.
 - 
setOffline
Enables/disables network access to remote repositories.- Parameters:
 offline-trueto disable remote access,falseto allow network access.- Returns:
 - This request, never 
null. 
 - 
isForceUpdate
boolean isForceUpdate()Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.- Returns:
 trueif remote repositories should be re-checked for updated artifacts/metadata,falseotherwise.
 - 
setForceUpdate
Enables/disabled forced checks for updated artifacts/metadata on remote repositories.- Parameters:
 forceUpdate-trueto forcibly check the remote repositories for updated artifacts/metadata,falseto use the update policy configured on each repository.- Returns:
 - This request, never 
null. 
 - 
getLocalRepository
ArtifactRepository getLocalRepository()Gets the local repository to use.- Returns:
 - The local repository to use or 
nullif not set. 
 - 
setLocalRepository
Sets the local repository to use.- Parameters:
 localRepository- The local repository to use.- Returns:
 - This request, never 
null. 
 - 
getRemoteRepositories
List<ArtifactRepository> getRemoteRepositories()Gets the remote repositories to use.- Returns:
 - The remote repositories to use, never 
null. 
 - 
setRemoteRepositories
Sets the remote repositories to use.- Parameters:
 remoteRepositories- The remote repositories to use.- Returns:
 - This request, never 
null. 
 
 -