Package org.sonatype.nexus.proxy.repository

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


      // we should really not see this, it would mean some execution path is buggy as it gets here
      // with unsupported repo
      throw new IllegalStateException(
          "Repository not supported by automatic routing feature (only Maven2 hosted, proxy and group repositories are supported)");
    }
    final LocalStatus localStatus = mavenRepository.getLocalStatus();
    if (!localStatus.shouldServiceRequest()) {
      throw new IllegalStateException(SimpleFormat.format("Repository out of service '%s'", mavenRepository.getId()));
    }
  }
View Full Code Here


        if (resource.getLocalStatus() == null) {
          throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "Local status must be defined");
        }

        LocalStatus localStatus = EnumUtil.valueOf(resource.getLocalStatus(), LocalStatus.class);
        if (RepositoryBaseResourceConverter.REPO_TYPE_VIRTUAL.equals(resource.getRepoType())) {
          ShadowRepository shadow =
              getRepositoryRegistry().getRepositoryWithFacet(repoId, ShadowRepository.class);

          shadow.setLocalStatus(localStatus);
View Full Code Here

TOP

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

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.