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 Tue, 23 Mar 2004 13:07:20 GMT
sviens      2004/03/23 05:07:20

  Modified:    src/java/org/apache/juddi/proxy RegistryProxy.java
  Log:
  Added property keys as constants (static final).
  
  Revision  Changes    Path
  1.6       +27 -15    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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RegistryProxy.java	22 Mar 2004 19:25:38 -0000	1.5
  +++ RegistryProxy.java	23 Mar 2004 13:07:20 -0000	1.6
  @@ -58,21 +58,33 @@
     // jUDDI Proxy Property File Name
     private static final String PROPFILE_NAME = "juddi.properties";
     
  -  // Default Properties
  -  private static final String DEFAULT_INQUIRY_ENDPOINT = "http://localhost/juddi/inquiry";
  -  private static final String DEFAULT_PUBLISH_ENDPOINT = "http://localhost/juddi/publish";
  -  private static final String DEFAULT_ADMIN_ENDPOINT = "http://localhost/juddi/admin";
   
  -  private static final String DEFAULT_SECURITY_PROVIDER = "com.sun.net.ssl.internal.ssl.Provider";
  -  private static final String DEFAULT_PROTOCOL_HANDLER = "com.sun.net.ssl.internal.www.protocol";
  +  // jUDDI Proxy Property Names
  +  public static final String INQUIRY_ENDPOINT_PROPERTY_NAME = "juddi.proxy.inquiryURL";
  +  public static final String PUBLISH_ENDPOINT_PROPERTY_NAME = "juddi.proxy.publishURL";
  +  public static final String ADMIN_ENDPOINT_PROPERTY_NAME = "juddi.proxy.adminURL";   

  +  public static final String SECURITY_PROVIDER_PROPERTY_NAME = "juddi.proxy.securityProvider";
  +  public static final String PROTOCOL_HANDLER_PROPERTY_NAME = "juddi.proxy.protocolHandler";
  +  public static final String UDDI_VERSION_PROPERTY_NAME = "juddi.proxy.uddiVersion";
  +  public static final String UDDI_NAMESPACE_PROPERTY_NAME = "juddi.proxy.uddiNamespace";
  +
  +  // jUDDI Proxy Default Properties
  +  public static final String DEFAULT_INQUIRY_ENDPOINT = "http://localhost/juddi/inquiry";
  +  public static final String DEFAULT_PUBLISH_ENDPOINT = "http://localhost/juddi/publish";
  +  public static final String DEFAULT_ADMIN_ENDPOINT = "http://localhost/juddi/admin"; 
  
  +  public static final String DEFAULT_SECURITY_PROVIDER = "com.sun.net.ssl.internal.ssl.Provider";
  +  public static final String DEFAULT_PROTOCOL_HANDLER = "com.sun.net.ssl.internal.www.protocol";
  +  public static final String DEFAULT_UDDI_VERSION = "2.0";
  +  public static final String DEFAULT_UDDI_NAMESPACE = "urn:uddi-org:api_v2";
     
     // Registry Server End Points
     private URL inquiryURL;
     private URL publishURL;
     private URL adminURL;
  -  private String uddiVersion;
  -  private String uddiNamespace;
  +  
     private String securityProvider;
     private String protocolHandler;
  +  private String uddiVersion;
  +  private String uddiNamespace;
     
     /**
      * Create a new instance of RegistryProxy.  This constructor
  @@ -140,15 +152,15 @@
       
       // Override defaults with specific specific values
       try {
  -      String iURL = props.getProperty("juddi.proxy.inquiryURL");
  +      String iURL = props.getProperty(INQUIRY_ENDPOINT_PROPERTY_NAME);
         if (iURL != null)
           this.setInquiryURL(new URL(iURL));
           
  -      String pURL = props.getProperty("juddi.proxy.publishURL");
  +      String pURL = props.getProperty(PUBLISH_ENDPOINT_PROPERTY_NAME);
         if (pURL != null)
           this.setPublishURL(new URL(pURL));
       
  -      String aURL = props.getProperty("juddi.proxy.adminURL");
  +      String aURL = props.getProperty(ADMIN_ENDPOINT_PROPERTY_NAME);
         if (aURL != null)
           this.setAdminURL(new URL(aURL));
       }
  @@ -156,19 +168,19 @@
         muex.printStackTrace();
       } 
   
  -    String secProvider = props.getProperty("juddi.proxy.securityProvider");
  +    String secProvider = props.getProperty(SECURITY_PROVIDER_PROPERTY_NAME);
       if (secProvider != null)
         this.setSecurityProvider(secProvider);
     
  -    String protoHandler = props.getProperty("juddi.proxy.protocolHandler");
  +    String protoHandler = props.getProperty(PROTOCOL_HANDLER_PROPERTY_NAME);
       if (protoHandler != null)
         this.setProtocolHandler(protoHandler);
   
  -    String uddiVer = props.getProperty("juddi.proxy.uddiVersion");
  +    String uddiVer = props.getProperty(UDDI_VERSION_PROPERTY_NAME);
       if (uddiVer != null)
         this.setUddiVersion(uddiVer);
     
  -    String uddiNS = props.getProperty("juddi.proxy.uddiNamespace");
  +    String uddiNS = props.getProperty(UDDI_NAMESPACE_PROPERTY_NAME);
       if (uddiNS != null)
         this.setUddiNamespace(uddiNS);
     }
  
  
  

Mime
View raw message