Package org.apache.juddi.datatype

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.juddi.org/service.wsdl"));
    discURLs.addDiscoveryURL(new DiscoveryURL("https","https://www.juddi.org/service.wsdl"));
    discURLs.addDiscoveryURL(new DiscoveryURL("smtp","servicemngr@juddi.org"));

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


        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.getDiscoveryURL());
      siteURL.append("businesskey=");
      siteURL.append(business.getBusinessKey());
     
      // add to the business entity
      business.addDiscoveryURL(new DiscoveryURL(businessEntityUseType,siteURL.toString()));
    }
  }
View Full Code Here

    throws Exception
  {

    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    Vector urls = new Vector();
    urls.add(new DiscoveryURL("http://www.uddi.org/","wsdl"));
    urls.add(new DiscoveryURL("http://www.sviens.com/","soap"));
    urls.add(new DiscoveryURL("http://www.juddi.org/","wsdl"));
    discoveryURLs.setDiscoveryURLVector(urls);

    Vector keysIn = new Vector();
    keysIn.add("d77170a5-cf1e-45e8-bbf3-5b0756b29199");
    keysIn.add("c311085b-3277-470d-8ce9-07b81c484e4b");
View Full Code Here

    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

  }

  private RegistryObject getRegistryObject()
  {
    DiscoveryURLs discURLs = new DiscoveryURLs();
    discURLs.addDiscoveryURL(new DiscoveryURL("businessEntity","http://www.juddi.org"));

    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

      statement.setString(1, businessKey.toString());

      int listSize = urlList.size();
      for (int urlID = 0; urlID < listSize; urlID++)
      {
        DiscoveryURL url = (DiscoveryURL) urlList.elementAt(urlID);
        String urlValue = url.getValue();

        log.debug(
          "insert into DISCOVERY_URL table:\n\n\t"
            + insertSQL
            + "\n\t BUSINESS_KEY="
            + businessKey.toString()
            + "\n\t DISCOVERY_URL_ID="
            + urlID
            + "\n\t USE_TYPE="
            + url.getUseType()
            + "\n\t URL="
            + urlValue
            + "\n");

        statement.setInt(2, urlID);
        statement.setString(3, url.getUseType());
        statement.setString(4, urlValue);
        statement.executeUpdate();
      }
    }
    finally
View Full Code Here

      // execute the statement
      resultSet = statement.executeQuery();
      while (resultSet.next())
      {
        DiscoveryURL url = new DiscoveryURL();
        url.setUseType(resultSet.getString(1));//("USE_TYPE"));
        url.setValue(resultSet.getString(2));//("URL"));
        urlList.add(url);
      }

      return urlList;
    }
View Full Code Here

    {
      sql.append("AND (");

      for (int i=0; i<vectorSize; i++)
      {
        DiscoveryURL discoveryURL = (DiscoveryURL)urlVector.elementAt(i);
        String url = discoveryURL.getValue();
        String useType = discoveryURL.getUseType();

        if ((url != null) && (url.length() > 0))
        {
          sql.append("(U.URL = ?");
          sql.addValue(url);
View Full Code Here

    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

    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

TOP

Related Classes of org.apache.juddi.datatype.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.