This project has retired. For details please refer to its Attic page.
Property xref
View Javadoc
1   /*
2    * Copyright 2001-2009 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   */
17  package org.apache.juddi.v3.client.config;
18  /**
19   * Contains a properties that are used in the juddi client config (uddi.xml)
20   * 
21   */
22  public class Property 
23  {
24  	public final static String UDDI_RELOAD_DELAY  ="reloadDelay";
25  	
26  	public final static String UDDI_PROXY_FACTORY_INITIAL       = "java.naming.factory.initial";
27  	public final static String UDDI_PROXY_PROVIDER_URL          = "java.naming.provider.url";
28  	public final static String UDDI_PROXY_FACTORY_URL_PKS       = "java.naming.factory.url.pkgs";
29  
30  	public final static String DEFAULT_UDDI_PROXY_TRANSPORT     = "org.uddi.api_v3.client.transport.JAXWSTransport";
31  	
32  	//Properties that can be set in the uddi.xml under a specific Node element
33  	public static final String LANG                             = "lang";
34  	public static final String BUSINESS_KEY                     = "businessKey";
35  	public static final String KEY_DOMAIN                       = "keyDomain";
36  	public static final String SERVICE_KEY_FORMAT               = "bpelServiceKeyFormat";
37  	public static final String BUSINESS_KEY_FORMAT              = "businessKeyFormat";
38  	public static final String BINDING_KEY_FORMAT               = "bindingKeyFormat";
39  	public static final String SUBSCRIPTION_KEY_FORMAT          = "subscriptionKeyFormat";
40  	public static final String SERVICE_DESCRIPTION              = "serviceDescription";
41  	public static final String BINDING_DESCRIPTION              = "bindingDescription";
42  	public static final String SERVICE_CATEGORY_BAG             = "serviceCategoryBag";
43  	public static final String BINDING_CATEGORY_BAG             = "bindingCategoryBag";
44  	public static final String BASIC_AUTH_USERNAME              = "basicAuthUsername";
45  	public static final String BASIC_AUTH_PASSWORD              = "basicAuthPassword";
46          public static final String BASIC_AUTH_PASSWORD_IS_ENC       = "basicAuthPasswordIsEncrypted";
47          public static final String BASIC_AUTH_PASSWORD_CP           = "basicAuthPasswordCryptoProvider";
48          
49          public final static String JUDDI_CRYPTOR_PREFIX = "client.clerks.clerk.";
50          public final static String JUDDI_CRYPTOR_POSTFIX = ".[@isPasswordEncrypted]";
51          
52  	
53  	//Default Values
54  	public static final String DEFAULT_LANG                     = "en";
55  	public static final String DEFAULT_SERVICE_DESCRIPTION      = "Default service description when no <wsdl:document> element is defined inside the <wsdl:service> element.";
56  	public static final String DEFAULT_BINDING_DESCRIPTION      = "Default binding description when no <wsdl:document> element is defined inside the <wsdl:binding> element.";
57  	
58  	public static String getTempDir() {
59  		String tmpDir = System.getProperty("jboss.server.temp.dir");
60  		if (tmpDir == null) {
61  			tmpDir = System.getProperty("java.io.tmpdir");
62  		}
63  		return tmpDir;
64  	}
65          
66          
67          public final static String DEFAULT_CRYPTOR = "org.apache.juddi.v3.client.cryptor.DefaultCryptor";
68          
69  
70  }