Package org.apache.ivy.plugins.resolver
Class MirroredURLResolver
- java.lang.Object
-
- org.apache.ivy.plugins.resolver.AbstractResolver
-
- org.apache.ivy.plugins.resolver.BasicResolver
-
- org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver
-
- org.apache.ivy.plugins.resolver.RepositoryResolver
-
- org.apache.ivy.plugins.resolver.MirroredURLResolver
-
- All Implemented Interfaces:
Validatable
,DependencyResolver
,HasLatestStrategy
public class MirroredURLResolver extends RepositoryResolver
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.URL
mirrorListUrl
-
Fields inherited from class org.apache.ivy.plugins.resolver.BasicResolver
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED
-
-
Constructor Summary
Constructors Constructor Description MirroredURLResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.io.File
downloadMirrorList()
java.lang.String
getTypeName()
private java.util.List<java.lang.String>
readMirrorList(java.io.File mirrorListFile)
void
setMirrorListUrl(java.net.URL mirrorListUrl)
private void
setupMirrors()
void
validate()
Validates the Validatable, throwing anIllegalStateException
if the current state is not valid.-
Methods inherited from class org.apache.ivy.plugins.resolver.RepositoryResolver
download, dumpSettings, exist, findResourceUsingPattern, findTokenValues, get, getDestination, getRepository, getResource, isAlwaysCheckExactRevision, listResources, listTokenValues, publish, put, putChecksum, putSignature, setAlwaysCheckExactRevision, setName, setRepository, setSettings, setSigner
-
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractPatternsBasedResolver
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2CriteriaForResourceSearch, convertM2IdForResourceSearch, convertM2OrganizationForResourceSearch, convertM2ResourceSearchIdToNormal, convertM2TokenValuesForResourceSearch, findArtifactNames, findArtifactRef, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, getModuleDescriptorExtension, isM2compatible, listTokenValues, setArtifactPatterns, setIvyPatterns, setM2compatible
-
Methods inherited from class org.apache.ivy.plugins.resolver.BasicResolver
acceptLatest, checkModuleDescriptorRevision, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, exists, filterNames, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getDependency, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isEnvDependent, isForce, listModules, listOrganisations, listRevisions, listTokenValues, locate, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setAllownomd, setCheckconsistency, setChecksums, setDescriptor, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toString
-
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver
abortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTimeoutConstraint, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setNamespace, setRepositoryCacheManager, setTimeoutConstraint, setValidate, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem
-
-
-
-
Method Detail
-
setMirrorListUrl
public void setMirrorListUrl(java.net.URL mirrorListUrl)
-
setupMirrors
private void setupMirrors()
-
downloadMirrorList
private java.io.File downloadMirrorList()
-
readMirrorList
private java.util.List<java.lang.String> readMirrorList(java.io.File mirrorListFile) throws java.io.IOException
- Throws:
java.io.IOException
-
getTypeName
public java.lang.String getTypeName()
- Overrides:
getTypeName
in classRepositoryResolver
-
validate
public void validate()
Description copied from interface:Validatable
Validates the Validatable, throwing anIllegalStateException
if the current state is not valid.- Specified by:
validate
in interfaceValidatable
- Overrides:
validate
in classAbstractResolver
-
-