Return-Path: Mailing-List: contact juddi-cvs-help@ws.apache.org; run by ezmlm Delivered-To: mailing list juddi-cvs@ws.apache.org Received: (qmail 43729 invoked from network); 25 Mar 2004 02:47:33 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 25 Mar 2004 02:47:33 -0000 Received: (qmail 98528 invoked by uid 1759); 25 Mar 2004 02:47:47 -0000 Date: 25 Mar 2004 02:47:47 -0000 Message-ID: <20040325024747.98527.qmail@minotaur.apache.org> From: sviens@apache.org To: ws-juddi-cvs@apache.org Subject: cvs commit: ws-juddi/src/java/org/apache/juddi/proxy RegistryProxy.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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();