Package org.uddi.api_v2

Examples of org.uddi.api_v2.DiscoveryURL


    }
    assertEquals(discList1.size(), discList2.size());
    Iterator<DiscoveryURL> discList1Itr = discList1.iterator();
    Iterator<DiscoveryURL> discList2Itr = discList2.iterator();
    while (discList1Itr.hasNext()) {
      DiscoveryURL disc1 = discList1Itr.next();
      DiscoveryURL disc2 = discList2Itr.next();
      assertEquals(disc1.getUseType(), disc2.getUseType());
      assertEquals(disc1.getValue(), disc2.getValue());
    }
  }
View Full Code Here


    Description description = new Description();
    description.setLang("en");
    description.setValue(data.getText(2, 5, false));
   
    //Business URL.
    DiscoveryURL discoveryURL = new DiscoveryURL();
    discoveryURL.setUseType("General Description");
    discoveryURL.setValue("http://www." + StringUtils.deleteWhitespace(businessName) + ".com");
   
    //All business URLs if many (here we only give one).
    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    discoveryURLs.getDiscoveryURL().add(discoveryURL);
   
View Full Code Here

   * @param useType
   * @return
   */
  public static DiscoveryURL generateDiscoveryURL(String businessUrl, String useType)
  {
    DiscoveryURL discoveryURL = new DiscoveryURL();
    discoveryURL.setValue(businessUrl);
    if(useType != null)
      discoveryURL.setUseType(useType);
   
    return discoveryURL;
  }
View Full Code Here

               
        }

        private static DiscoveryURLs getDisco() {
                DiscoveryURLs r = new DiscoveryURLs();
                r.getDiscoveryURL().add(new DiscoveryURL("public website", "http://localhost"));
                return r;
               
        }
View Full Code Here

                Name n = new Name();

                n.setValue("BusinessDiscoveryURLTooLongTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4097);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);
                try {
                        BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
                        DeleteBusiness db = new DeleteBusiness();
View Full Code Here

                Name n = new Name();

                n.setValue("BusinessDiscoveryURLMaxLengthTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4096);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);

                BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
                DeleteBusiness db = new DeleteBusiness();
View Full Code Here

                Name n = new Name();

                n.setValue("BusinessDiscoveryURLMaxLengthMaxUseTypeTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4096);
                d.setUseType(str255);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);

                BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
                DeleteBusiness db = new DeleteBusiness();
View Full Code Here

                Name n = new Name();

                n.setValue("BusinessDiscoveryURLMaxLengthToolongUseTypeTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4096);
                d.setUseType(str256);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);
                try {
                        BusinessDetail saveBusiness = publicationJoe.saveBusiness(sb);
                        DeleteBusiness db = new DeleteBusiness();
View Full Code Here

        Name n = new Name();

        n.setValue("A Test business");
        be.getName().add(n);
        be.setDiscoveryURLs(new DiscoveryURLs());
        DiscoveryURL d = new DiscoveryURL();
        d.setValue(str4097);
        be.getDiscoveryURLs().getDiscoveryURL().add(d);
        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
            DeleteBusiness db = new DeleteBusiness();
View Full Code Here

        Name n = new Name();

        n.setValue("A Test business");
        be.getName().add(n);
        be.setDiscoveryURLs(new DiscoveryURLs());
        DiscoveryURL d = new DiscoveryURL();
        d.setValue(str4096);
        be.getDiscoveryURLs().getDiscoveryURL().add(d);
        sb.getBusinessEntity().add(be);
    
        BusinessDetail saveBusiness = publication.saveBusiness(sb);
        DeleteBusiness db = new DeleteBusiness();
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.DiscoveryURL

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.