Package org.sonatype.nexus.proxy.repository

Examples of org.sonatype.nexus.proxy.repository.Mirror


    List<CMirror> modelMirrors = getConfiguration(false).getMirrors();

    ArrayList<Mirror> mirrors = new ArrayList<Mirror>(modelMirrors.size());

    for (CMirror model : modelMirrors) {
      Mirror mirror = new Mirror(model.getId(), model.getUrl());

      mirrors.add(mirror);
    }

    return Collections.unmodifiableList(mirrors);
View Full Code Here


    return sortedList;
  }

  protected Mirror restToNexusModel(MirrorResource resource) {
    Mirror mirror = new Mirror(resource.getId(), resource.getUrl());

    return mirror;
  }
View Full Code Here

          final String mirrorUrl = mirrorDOM.getAttribute("url");
          log.debug("Repository " + getId() + ": configureMirrors: found mirror URL=" + mirrorUrl);
          if (mirrorUrl != null) {
            // TODO: validate that this is valid way to generate id
            // or if should be pulled from xml
            final Mirror mirror = new Mirror(
                getSha1Digest(mirrorUrl), mirrorUrl, getRemoteUrl()
            );
            mirrorMap.put(mirror.getId(), mirror);
          }
        }
      }

      mirrorsConfigured = true;
View Full Code Here

      for (final Xpp3Dom mirrorDOM : mirrorsDoms) {
        final String mirrorUrl = mirrorDOM.getAttribute("url");
        if (mirrorUrl != null) {
          // TODO: validate that this is valid way to generate id
          // or if should be pulled from xml
          final Mirror mirror = new Mirror(getSha1Digest(mirrorUrl), mirrorUrl, remoteRepoUrl);
          mirrorMap.put(mirror.getId(), mirror);
        }
      }
    }
    final Mirror mirror = new Mirror(getSha1Digest(remoteRepoUrl), remoteRepoUrl, remoteRepoUrl);
    mirrorMap.put(mirror.getId(), mirror);
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.repository.Mirror

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.