juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/samples/find_tModel FindTModelSample.java
Date Mon, 22 Mar 2004 20:44:19 GMT
sviens      2004/03/22 12:44:19

  Modified:    samples/get_authToken GetAuthTokenSample.java
               samples/find_tModel FindTModelSample.java
  Log:
  Updated and tested.
  
  Revision  Changes    Path
  1.6       +13 -1     ws-juddi/samples/get_authToken/GetAuthTokenSample.java
  
  Index: GetAuthTokenSample.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/samples/get_authToken/GetAuthTokenSample.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- GetAuthTokenSample.java	22 Mar 2004 19:28:19 -0000	1.5
  +++ GetAuthTokenSample.java	22 Mar 2004 20:44:19 -0000	1.6
  @@ -14,6 +14,8 @@
    * limitations under the License.
    */
   
  +import java.util.Properties;
  +
   import org.apache.juddi.datatype.request.AuthInfo;
   import org.apache.juddi.datatype.response.AuthToken;
   import org.apache.juddi.proxy.RegistryProxy;
  @@ -26,7 +28,17 @@
   {
     public static void main(String[] args)
     {
  -    IRegistry registry = new RegistryProxy();
  +    // Option #1 (grabs properties from juddi.properties)
  +    //IRegistry registry = new RegistryProxy();
  +    
  +    // Option #2
  +    Properties props = new Properties();
  +    props.setProperty("juddi.proxy.adminURL","http://localhost:8080/juddi/admin");
  +    props.setProperty("juddi.proxy.inquiryURL","http://localhost:8080/juddi/inquiry");
  +    props.setProperty("juddi.proxy.publishURL","http://localhost:8080/juddi/publish");
  +    props.setProperty("juddi.proxy.securityProvider","com.sun.net.ssl.internal.ssl.Provider");
  +    props.setProperty("juddi.proxy.protocolHandler","com.sun.net.ssl.internal.www.protocol");
   
  +    IRegistry registry = new RegistryProxy(props);
   
       String userID = "sviens";
       String password = "password";
  
  
  
  1.5       +14 -1     ws-juddi/samples/find_tModel/FindTModelSample.java
  
  Index: FindTModelSample.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/samples/find_tModel/FindTModelSample.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FindTModelSample.java	16 Mar 2004 14:26:16 -0000	1.4
  +++ FindTModelSample.java	22 Mar 2004 20:44:19 -0000	1.5
  @@ -14,6 +14,7 @@
    * limitations under the License.
    */
   
  +import java.util.Properties;
   import java.util.Vector;
   
   import org.apache.juddi.datatype.response.TModelInfo;
  @@ -29,10 +30,22 @@
   {
     public static void main(String[] args)
     {
  -    IRegistry registry = new RegistryProxy();
  +    // Option #1 (grabs properties from juddi.properties)
  +    //IRegistry registry = new RegistryProxy();
  +    
  +    // Option #2
  +    Properties props = new Properties();
  +    props.setProperty("juddi.proxy.adminURL","http://localhost:8080/juddi/admin");
  +    props.setProperty("juddi.proxy.inquiryURL","http://localhost:8080/juddi/inquiry");
  +    props.setProperty("juddi.proxy.publishURL","http://localhost:8080/juddi/publish");
  +    props.setProperty("juddi.proxy.securityProvider","com.sun.net.ssl.internal.ssl.Provider");
  +    props.setProperty("juddi.proxy.protocolHandler","com.sun.net.ssl.internal.www.protocol");
   
  +    IRegistry registry = new RegistryProxy(props);
   
       try
       {
  +      System.out.println("find_tModel Sample");
  +      System.out.println("------------------");
         TModelList list = registry.findTModel("uddi-org",null,null,null,0);
         TModelInfos infos = list.getTModelInfos();
         Vector vector = infos.getTModelInfoVector();
  
  
  

Mime
View raw message