return proxySelector;
}
private MirrorSelector selectMirrors() {
// configure mirror
DefaultMirrorSelector selector = new DefaultMirrorSelector();
Map<String, Map<String, String>> mirrors = m_config.getMirrors();
for (String mirrorName : mirrors.keySet()) {
Map<String, String> mirror = mirrors.get(mirrorName);
//The fields are id, url, mirrorOf, layout, mirrorOfLayouts.
String mirrorOf = mirror.get("mirrorOf");
String url = mirror.get("url");
// type can be null in this implementation (1.11)
selector.add(mirrorName, url, null, false, mirrorOf, "*");
}
return selector;
/**
Set<RemoteRepository> mirrorRepoList = new HashSet<RemoteRepository>();
for (RemoteRepository r : m_remoteRepos) {