Examples of DiscoveryURL


Examples of org.apache.juddi.datatype.DiscoveryURL

    IdentifierBag idBag = new IdentifierBag();
    idBag.addKeyedReference(new KeyedReference("idBagKeyName","idBagkeyValue"));
    idBag.addKeyedReference(new KeyedReference("uuid:f78a135a-4769-4e79-8604-54d440314bc0","idBagKeyName2","idBagkeyValue2"));

    DiscoveryURLs discURLs = new DiscoveryURLs();
    discURLs.addDiscoveryURL(new DiscoveryURL("http","http://www.sviens.com/service.wsdl"));
    discURLs.addDiscoveryURL(new DiscoveryURL("https","https://www.sviens.com/service.wsdl"));
    discURLs.addDiscoveryURL(new DiscoveryURL("smtp","servicemngr@sviens.com"));

    Address address = new Address();
    address.setUseType("myAddressUseType");
    address.setSortCode("sortThis");
    address.setTModelKey(null);
View Full Code Here

Examples of org.apache.juddi.datatype.DiscoveryURL

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    DiscoveryURLs discURLs = new DiscoveryURLs();
    discURLs.addDiscoveryURL(new DiscoveryURL("businessEntity","http://www.sviens.com"));

    IdentifierBag idBag = new IdentifierBag();
    idBag.addKeyedReference(new KeyedReference("idBagKeyName","idBagKeyValue"));
    idBag.addKeyedReference(new KeyedReference("uuid:3860b975-9e0c-4cec-bad6-87dfe00e3864","idBagKeyName2","idBagKeyValue2"));
View Full Code Here

Examples of org.apache.juddi.datatype.DiscoveryURL

    IdentifierBag idBag = new IdentifierBag();
    idBag.addKeyedReference(new KeyedReference("idBagKeyName","idBagkeyValue"));
    idBag.addKeyedReference(new KeyedReference("uuid:f78a135a-4769-4e79-8604-54d440314bc0","idBagKeyName2","idBagkeyValue2"));

    DiscoveryURLs discURLs = new DiscoveryURLs();
    discURLs.addDiscoveryURL(new DiscoveryURL("http","http://www.sviens.com/service.wsdl"));
    discURLs.addDiscoveryURL(new DiscoveryURL("https","https://www.sviens.com/service.wsdl"));
    discURLs.addDiscoveryURL(new DiscoveryURL("smtp","servicemngr@sviens.com"));

    Address address = new Address();
    address.setUseType("myAddressUseType");
    address.setSortCode("sortThis");
    address.setTModelKey(null);
View Full Code Here

Examples of org.apache.juddi.datatype.DiscoveryURL

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    discoveryURLs.addDiscoveryURL(new DiscoveryURL("businessEntity","http://www.sviens.com"));

    System.out.println();

    RegistryObject regObject = discoveryURLs;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.apache.juddi.datatype.DiscoveryURL

        String useType  = null;

        for (int j=0; j<discoveryURLVector.size(); j++)
        {
          DiscoveryURL discoveryURL = (DiscoveryURL)discoveryURLVector.get(j);
          if(discoveryURL != null)
          {
            useType = discoveryURL.getUseType();
            // check if the business has DiscoveryURL with useType as 'businessEntity'
            if(useType.equals(businessEntityUseType))
            {
              businessEntityURLExists = true;
              j = discoveryURLVector.size();
            }
          }
        }
      }
    }
    else
    {
      // create create a discoveryURLs and add it to business entity
      business.setDiscoveryURLs(new DiscoveryURLs());
    }

    // add the businessEntity if businessEntity URL doesn't exist
    if(!businessEntityURLExists)
    {
      // get the DiscoveryURL from the juddi properties file
      StringBuffer siteURL = new StringBuffer();
      siteURL.append(Config.getOperatorURL());
      siteURL.append("/uddiget.jsp?businesskey=");
      siteURL.append(business.getBusinessKey());
     
      // add to the business entity
      business.addDiscoveryURL(new DiscoveryURL(businessEntityUseType,siteURL.toString()));
    }
  }
View Full Code Here

Examples of org.apache.ws.scout.model.uddi.v2.DiscoveryURL

                if (first) {
                    emptyDUs = objectFactory.createDiscoveryURLs();
                    biz.setDiscoveryURLs(emptyDUs);
                    first = false;
                }
                DiscoveryURL emptyDU = objectFactory.createDiscoveryURL();
                emptyDUs.getDiscoveryURL().add(emptyDU);
                emptyDU.setUseType("businessEntityExt");
       
                if (link.getExternalURI() != null) {
                    emptyDU.setValue(link.getExternalURI());
                }
            }
     
          IdentifierBag idBag = getIdentifierBagFromExternalIdentifiers(organization.getExternalIdentifiers());
          if (idBag!=null) {
View Full Code Here

Examples of org.apache.ws.scout.uddi.DiscoveryURL

      if (durls != null)
      {
         DiscoveryURL[] darr = durls.getDiscoveryURLArray();
         for (int j = 0; darr != null && j < darr.length; j++)
         {
            DiscoveryURL durl = (DiscoveryURL)darr[j];
            ExternalLink link = new ExternalLinkImpl(lcm);
            link.setExternalURI(durl.getStringValue());
            org.addExternalLink(link);
         }
      }

      org.addExternalIdentifiers(getExternalIdentifiers(entity.getIdentifierBag(), lcm));
View Full Code Here

Examples of org.uddi.api_v2.DiscoveryURL

                if (discoveryURLs == null) {
                        return null;
                }
                DiscoveryURLs r = new DiscoveryURLs();
                for (int i = 0; i < discoveryURLs.getDiscoveryURL().size(); i++) {
                        DiscoveryURL d = new DiscoveryURL();
                        d.setUseType(discoveryURLs.getDiscoveryURL().get(i).getUseType());
                        d.setValue(discoveryURLs.getDiscoveryURL().get(i).getValue());
                        r.getDiscoveryURL().add(d);
                }
                return r;
               
        }
View Full Code Here

Examples of org.uddi.api_v3.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

Examples of org.uddi.api_v3.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
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.