Interface RepositoryRequest
-
- All Known Subinterfaces:
MetadataResolutionRequest
- All Known Implementing Classes:
ArtifactResolutionRequest,DefaultMetadataResolutionRequest,DefaultRepositoryRequest
public interface RepositoryRequestCollects basic settings to access the repository system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArtifactRepositorygetLocalRepository()Gets the local repository to use.java.util.List<ArtifactRepository>getRemoteRepositories()Gets the remote repositories to use.booleanisForceUpdate()Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.booleanisOffline()Indicates whether network access to remote repositories has been disabled.RepositoryRequestsetForceUpdate(boolean forceUpdate)Enables/disabled forced checks for updated artifacts/metadata on remote repositories.RepositoryRequestsetLocalRepository(ArtifactRepository localRepository)Sets the local repository to use.RepositoryRequestsetOffline(boolean offline)Enables/disables network access to remote repositories.RepositoryRequestsetRemoteRepositories(java.util.List<ArtifactRepository> remoteRepositories)Sets the remote repositories to use.
-
-
-
Method Detail
-
isOffline
boolean isOffline()
Indicates whether network access to remote repositories has been disabled.- Returns:
trueif remote access has been disabled,falseotherwise.
-
setOffline
RepositoryRequest setOffline(boolean offline)
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
RepositoryRequest setForceUpdate(boolean forceUpdate)
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
RepositoryRequest setLocalRepository(ArtifactRepository localRepository)
Sets the local repository to use.- Parameters:
localRepository- The local repository to use.- Returns:
- This request, never
null.
-
getRemoteRepositories
java.util.List<ArtifactRepository> getRemoteRepositories()
Gets the remote repositories to use.- Returns:
- The remote repositories to use, never
null.
-
setRemoteRepositories
RepositoryRequest setRemoteRepositories(java.util.List<ArtifactRepository> remoteRepositories)
Sets the remote repositories to use.- Parameters:
remoteRepositories- The remote repositories to use.- Returns:
- This request, never
null.
-
-