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 SummaryModifier 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- 
isOfflineboolean isOffline()Indicates whether network access to remote repositories has been disabled.- Returns:
- trueif remote access has been disabled,- falseotherwise.
 
- 
setOfflineEnables/disables network access to remote repositories.- Parameters:
- offline-- trueto disable remote access,- falseto allow network access.
- Returns:
- This request, never null.
 
- 
isForceUpdateboolean 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.
 
- 
setForceUpdateEnables/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.
 
- 
getLocalRepositoryArtifactRepository getLocalRepository()Gets the local repository to use.- Returns:
- The local repository to use or nullif not set.
 
- 
setLocalRepositorySets the local repository to use.- Parameters:
- localRepository- The local repository to use.
- Returns:
- This request, never null.
 
- 
getRemoteRepositoriesList<ArtifactRepository> getRemoteRepositories()Gets the remote repositories to use.- Returns:
- The remote repositories to use, never null.
 
- 
setRemoteRepositoriesSets the remote repositories to use.- Parameters:
- remoteRepositories- The remote repositories to use.
- Returns:
- This request, never null.
 
 
-