Examples of NexusClientNotFoundException


Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

            getNexusClient().getClient().resource(url + location).get(ClientResponse.class),
            returnType,
            metadataType.getCompression()
        );
      }
      throw new NexusClientNotFoundException(
          "Could not find metadata type '" + metadataType.getType() + "'", null
      );
    }
    catch (UniformInterfaceException e) {
      throw getNexusClient().convert(e);
View Full Code Here

Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

            getNexusClient().getClient().resource(url + location).get(ClientResponse.class),
            returnType,
            metadataType.getCompression()
        );
      }
      throw new NexusClientNotFoundException(
          "Could not find metadata type '" + metadataType.getType() + "'", null
      );
    }
    catch (UniformInterfaceException e) {
      throw getNexusClient().convert(e);
View Full Code Here

Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

      final String url = ensureUrlEndsWithSlash(repositoryId);
      final String location = getLocationOfMetadata(url, metadataType);
      if (location != null) {
        return "/" + location;
      }
      throw new NexusClientNotFoundException(
          "Could not find metadata type '" + metadataType.getType() + "'", null
      );
    }
    catch (UniformInterfaceException e) {
      throw getNexusClient().convert(e);
View Full Code Here

Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

      final String url = ensureUrlEndsWithSlash(repositoryId);
      final String location = getLocationOfMetadata(url, metadataType);
      if (location != null) {
        return url + location;
      }
      throw new NexusClientNotFoundException(
          "Could not find metadata type '" + metadataType.getType() + "'", null
      );
    }
    catch (UniformInterfaceException e) {
      throw getNexusClient().convert(e);
View Full Code Here

Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

    }
  }

  private void throwIf404(final ClientResponse response) {
    if (ClientResponse.Status.NOT_FOUND.equals(response.getClientResponseStatus())) {
      throw new NexusClientNotFoundException(
          response.getClientResponseStatus().getReasonPhrase(),
          getResponseBody(response)
      );
    }
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

  }

  public NexusClientNotFoundException convertIf404(final UniformInterfaceException e) {
    final ClientResponse response = e.getResponse();
    if (ClientResponse.Status.NOT_FOUND.equals(response.getClientResponseStatus())) {
      return new NexusClientNotFoundException(
          getMessageIfPresent(ClientResponse.Status.NOT_FOUND.getStatusCode(), e),
          response.getClientResponseStatus().getReasonPhrase(),
          getResponseBody(response)
      );
    }
View Full Code Here

Examples of org.sonatype.nexus.client.core.exception.NexusClientNotFoundException

  public Capability getUnique(final Filter filter)
      throws MultipleCapabilitiesFoundException, NexusClientNotFoundException
  {
    final Collection<Capability> capabilities = get(filter);
    if (capabilities.isEmpty()) {
      throw new NexusClientNotFoundException(
          String.format("No capability found matching filter '%s'", filter),
          NO_RESPONSE_BODY
      );
    }
    if (capabilities.size() > 1) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.