Examples of uri()


Examples of org.jclouds.compute.domain.ImageBuilder.uri()

      checkNotNull(from, "VAppTemplate");
      Envelope ovf = templateToEnvelope.apply(from);

      ImageBuilder builder = new ImageBuilder();
      builder.ids(from.getHref().toASCIIString());
      builder.uri(from.getHref());
      builder.name(from.getName());
      Link vdc = Iterables.find(checkNotNull(from, "from").getLinks(), LinkPredicates.typeEquals(VCloudDirectorMediaType.VDC));
      if (vdc != null) {
         builder.location(findLocationForResource.apply(vdc));
      } else {
View Full Code Here

Examples of org.jclouds.compute.domain.NodeMetadataBuilder.uri()

   }

   public NodeMetadata apply(Vm from) {
      NodeMetadataBuilder builder = new NodeMetadataBuilder();
      builder.ids(from.getHref().toASCIIString());
      builder.uri(from.getHref());
      builder.name(from.getName());
      builder.hostname(from.getName());
      builder.location(findLocationForResourceInVDC.apply(
            Iterables.find(from.getLinks(), LinkPredicates.typeEquals(VCloudDirectorMediaType.VDC))));
      builder.group(nodeNamingConvention.groupInUniqueNameOrNull(from.getName()));
View Full Code Here

Examples of org.jclouds.compute.domain.SecurityGroupBuilder.uri()

      SecurityGroupBuilder builder = new SecurityGroupBuilder();

      builder.id(network.getName());
      builder.providerId(network.getId());
      builder.name(network.getName());
      builder.uri(network.getSelfLink());

      ImmutableSet.Builder permBuilder = ImmutableSet.builder();

      ListOptions options = new ListOptions.Builder().filter("network eq .*/" + network.getName());

View Full Code Here

Examples of org.jclouds.openstack.swift.v1.domain.SwiftObject.uri()

   public void privateByDefault() throws Exception {
      for (String regionId : regions) {
         SwiftObject object = api.objectApiInRegionForContainer(regionId, containerName).head(name);
         try {
            object.uri().toURL().openStream();
            fail("shouldn't be able to access " + object);
         } catch (IOException expected) {
         }
      }
   }
View Full Code Here

Examples of org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Builder.uri()

         else
            builder.metadata(ParseMetadata.transformCLBMetadataToMetadata(lb.metadata));
        
         int indexOfLB = endpoint.toString().lastIndexOf(LOAD_BALANCERS);
         String path = endpoint.toString().substring(0, indexOfLB + LOAD_BALANCERS.length());
         builder.uri(URI.create(path + "/" + lb.id));

         return builder.build();
      }
      catch (NullPointerException e) {
         logger.warn(e, "nullpointer found parsing %s", lb);
View Full Code Here

Examples of org.joggito.annotations.RDFResource.uri()

   * Resolves the full URI by concatenating namespace (from @RDFResource
   * annotation on the owner class) and the given local name.
   */
  private String resolveFromLocalName(String uriExp, Class<?> beanCls) {
    RDFResource annRsc = beanCls.getAnnotation(RDFResource.class);
    String ns = ResourceFactory.createResource(annRsc.uri())
        .getNameSpace();
    return ns.concat(uriExp.replace("#", ""));
  }

  /**
 
View Full Code Here

Examples of org.milyn.javabean.dynamic.serialize.DefaultNamespace.uri()

        // changed later, if needed...
        DefaultNamespace defaultNs = beanInstance.getClass().getAnnotation(DefaultNamespace.class);
        if(defaultNs == null) {
            BeanRegistrationException.throwBeanNotAnnotatedWithDefaultNamespace(beanInstance);
        }
        metadata.setNamespace(defaultNs.uri());
        metadata.setNamespacePrefix(defaultNs.prefix());

        return metadata;
    }
View Full Code Here

Examples of org.mitre.sipchat.model.presence.Presentity.uri()

  String status = msg.getSignatureStatus();
  //  IMA from = msg.getFrom();
  Presentity from = msg.getFrom();
  if (from != null) {
      /** SRJ check next line */
      String s1 = longUser ? from.toString() : from.uri();
      if ((getShowSignatureStatus() && status != null) || getShowDate()) {
    s1 += " ";
      }
      sb.append(s1);
  }
View Full Code Here

Examples of org.sonatype.nexus.client.rest.jersey.JerseyNexusClient.uri()

                        final boolean useDeleteFlag)
      throws IOException
  {
    final JerseyNexusClient jerseyNexusClient = (JerseyNexusClient) client;
    try {
      jerseyNexusClient
          .uri(
              "service/local/repositories/" + repositoryId + "/content-compressed"
                  + (path != null ? "/" + path : "")
                  + (useDeleteFlag ? "?delete" : "")
          )
View Full Code Here

Examples of org.springframework.ws.server.endpoint.annotation.Namespace.uri()

                namespaceContext.bindNamespaceUri(namespaceAnn.prefix(), namespaceAnn.uri());
            }
        }
        if (annotatedElement.isAnnotationPresent(Namespace.class)) {
            Namespace namespaceAnn = annotatedElement.getAnnotation(Namespace.class);
            namespaceContext.bindNamespaceUri(namespaceAnn.prefix(), namespaceAnn.uri());
        }
    }

}
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.