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/src/java/org/apache/juddi/proxy RegistryProxy.java
Date Thu, 25 Mar 2004 02:47:47 GMT
sviens      2004/03/24 18:47:47

  Modified:    src/java/org/apache/juddi/proxy RegistryProxy.java
  Log:
  Updated the test driver (it's actually just an example of use)
  
  Revision  Changes    Path
  1.8       +11 -7     ws-juddi/src/java/org/apache/juddi/proxy/RegistryProxy.java
  
  Index: RegistryProxy.java
  ===================================================================
  RCS file: /home/cvs/ws-juddi/src/java/org/apache/juddi/proxy/RegistryProxy.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- RegistryProxy.java	24 Mar 2004 06:08:17 -0000	1.7
  +++ RegistryProxy.java	25 Mar 2004 02:47:47 -0000	1.8
  @@ -393,14 +393,18 @@
     public static void main(String[] args)
       throws RegistryException
     {
  -    Properties proxyProps = new Properties();
  -    proxyProps.setProperty("1","one");
  -    proxyProps.setProperty("2","two");
  -    proxyProps.setProperty("3","three");
  -    proxyProps.setProperty("4","four");
  -    proxyProps.setProperty("5","five");    
  +    // Option #1 (grabs properties from juddi.properties file)
  +    //IRegistry registry = new RegistryProxy();
  +    
  +    // Option #2 (provides properties in Properties instance)
  +    Properties props = new Properties();
  +    props.setProperty(RegistryProxy.ADMIN_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/admin");
  +    props.setProperty(RegistryProxy.INQUIRY_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/inquiry");
  +    props.setProperty(RegistryProxy.PUBLISH_ENDPOINT_PROPERTY_NAME,"http://localhost:8080/juddi/publish");
  +    props.setProperty(RegistryProxy.SECURITY_PROVIDER_PROPERTY_NAME,"com.sun.net.ssl.internal.ssl.Provider");
  +    props.setProperty(RegistryProxy.PROTOCOL_HANDLER_PROPERTY_NAME,"com.sun.net.ssl.internal.www.protocol");
  +    IRegistry registry = new RegistryProxy(props);
       
  -    IRegistry registry = new RegistryProxy(proxyProps);    
       AuthToken authToken = registry.getAuthToken("sviens","password");
       AuthInfo authInfo = authToken.getAuthInfo();
   
  
  
  

Mime
View raw message