Author: keith
Date: Mon Apr 28 08:18:20 2008
New Revision: 16278
Log:
Making all constants final
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
==============================================================================
--- trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
(original)
+++ trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
Mon Apr 28 08:18:20 2008
@@ -17,48 +17,48 @@
public class MashupConstants {
- public static String MASHUP_SERVER_VERSION = "Version";
- public static String MASHUP_SERVER_UUID = "ServerUUID";
+ public static final String MASHUP_SERVER_VERSION = "Version";
+ public static final String MASHUP_SERVER_UUID = "ServerUUID";
- public static String MASHUP_JS_SERVICE = "MashupJSService";
- public static String MASHUP_DESTROY_FUNCTION = "MashupDestroyFunction";
- public static String CONTENT_TYPE_QUERY_PARAM = "content-type";
- public static String REGISTRY_CONFIG = "RegistryConfig";
- public static String USERMANAGER_CONFIG = "UsermanagerConfig";
- public static String DATABASE_CONNECTION = "DataBaseConnection";
- public static String DRIVER_CLASS = "driverClass";
- public static String URL = "url";
- public static String EMAIL_CONFIG = "EmailConfig";
- public static String IM_CONFIG = "IMConfig";
- public static String USERNAME = "username";
- public static String PASSWORD = "password";
- public static String EMAIL_USERNAME = EMAIL_CONFIG + "." + USERNAME;
- public static String EMAIL_PASSWORD = EMAIL_CONFIG + "." + PASSWORD;
- public static String HOST = EMAIL_CONFIG + "." + "host";
- public static String PORT = EMAIL_CONFIG + "." + "port";
- public static String FROM = EMAIL_CONFIG + "." + "from";
- public static String MSN = IM_CONFIG + "." + "MSN";
- public static String AIM = IM_CONFIG + "." + "AIM";
- public static String ICQ = IM_CONFIG + "." + "ICQ";
- public static String JABBER = IM_CONFIG + "." + "Jabber";
- public static String YAHOO = IM_CONFIG + "." + "Yahoo";
-
- public static String SESSION_MANAGEMENT = "SessionManagement";
- public static String REMEMBER_ME_PERIOD = "RememberMePeriod";
-
- public static String CAPTCHA_CONFIG = "Captcha";
- public static String CAPTCHA_CONFIG_STATUS = "EnableCaptcha";
-
- public static String QUARTZ_FUNCTION_SCHEDULER = "FunctionScheduler";
- public static String QUARTZ_FUNCTION_SCHEDULER_JOB_IDS =
"FunctionSchedulerJobIds";
-
- public static String SECURITY_CONFIG = "Security";
- public static String SECURITY_CONFIG_KEYSTORE = "KeyStore";
- public static String SECURITY_CONFIG_KEYSTORE_LOCATION = "Location";
- public static String SECURITY_CONFIG_KEYSTORE_TYPE = "Type";
- public static String SECURITY_CONFIG_KEYSTORE_PASSWORD = "Password";
- public static String SECURITY_CONFIG_KEYSTORE_KEYALIAS = "KeyAlias";
- public static String SECURITY_CONFIG_KEYSTORE_KEYPASSWORD = "KeyPassword";
+ public static final String MASHUP_JS_SERVICE = "MashupJSService";
+ public static final String MASHUP_DESTROY_FUNCTION =
"MashupDestroyFunction";
+ public static final String CONTENT_TYPE_QUERY_PARAM = "content-type";
+ public static final String REGISTRY_CONFIG = "RegistryConfig";
+ public static final String USERMANAGER_CONFIG = "UsermanagerConfig";
+ public static final String DATABASE_CONNECTION = "DataBaseConnection";
+ public static final String DRIVER_CLASS = "driverClass";
+ public static final String URL = "url";
+ public static final String EMAIL_CONFIG = "EmailConfig";
+ public static final String IM_CONFIG = "IMConfig";
+ public static final String USERNAME = "username";
+ public static final String PASSWORD = "password";
+ public static final String EMAIL_USERNAME = EMAIL_CONFIG + "." + USERNAME;
+ public static final String EMAIL_PASSWORD = EMAIL_CONFIG + "." + PASSWORD;
+ public static final String HOST = EMAIL_CONFIG + "." + "host";
+ public static final String PORT = EMAIL_CONFIG + "." + "port";
+ public static final String FROM = EMAIL_CONFIG + "." + "from";
+ public static final String MSN = IM_CONFIG + "." + "MSN";
+ public static final String AIM = IM_CONFIG + "." + "AIM";
+ public static final String ICQ = IM_CONFIG + "." + "ICQ";
+ public static final String JABBER = IM_CONFIG + "." + "Jabber";
+ public static final String YAHOO = IM_CONFIG + "." + "Yahoo";
+
+ public static final String SESSION_MANAGEMENT = "SessionManagement";
+ public static final String REMEMBER_ME_PERIOD = "RememberMePeriod";
+
+ public static final String CAPTCHA_CONFIG = "Captcha";
+ public static final String CAPTCHA_CONFIG_STATUS = "EnableCaptcha";
+
+ public static final String QUARTZ_FUNCTION_SCHEDULER = "FunctionScheduler";
+ public static final String QUARTZ_FUNCTION_SCHEDULER_JOB_IDS =
"FunctionSchedulerJobIds";
+
+ public static final String SECURITY_CONFIG = "Security";
+ public static final String SECURITY_CONFIG_KEYSTORE = "KeyStore";
+ public static final String SECURITY_CONFIG_KEYSTORE_LOCATION = "Location";
+ public static final String SECURITY_CONFIG_KEYSTORE_TYPE = "Type";
+ public static final String SECURITY_CONFIG_KEYSTORE_PASSWORD = "Password";
+ public static final String SECURITY_CONFIG_KEYSTORE_KEYALIAS = "KeyAlias";
+ public static final String SECURITY_CONFIG_KEYSTORE_KEYPASSWORD =
"KeyPassword";
public static final String EMAIL_RELAY_HOST = "email_relay_host";
public static final String REG_VALIDATION_URL =
"registration_validation_url";
@@ -149,110 +149,110 @@
public static final int MIN_PASSWORD_LENGTH = 5;
public static final String PASSWORD_SEPARATOR = "<separator/>";
- public static String MASHUP_PRIVATE_FOLDER_NAME = "_private";
- public static String UNDISPATCHED_OPERATION = "undispatched";
- public static String TAGS_ELEMENT = "tag";
+ public static final String MASHUP_PRIVATE_FOLDER_NAME = "_private";
+ public static final String UNDISPATCHED_OPERATION = "undispatched";
+ public static final String TAGS_ELEMENT = "tag";
// The extention of the tags file used to hold the tags for masgups
- public static String TAGS_File = ".tags";
+ public static final String TAGS_File = ".tags";
// The extention of the resources file created for each masgup
- public static String RESOURCES = ".resources";
+ public static final String RESOURCES = ".resources";
- public static String NAME = "name";
- public static String XSD = "xsd";
- public static String QUESTION_MARK = "?";
- public static String FORWARD_SLASH = "/";
- public static String DOT = ".";
+ public static final String NAME = "name";
+ public static final String XSD = "xsd";
+ public static final String QUESTION_MARK = "?";
+ public static final String FORWARD_SLASH = "/";
+ public static final String DOT = ".";
// The value that is used by the javascript init annotation. e.g this.init
= function (){}
- public static String INIT_ANNOTATION = "init";
+ public static final String INIT_ANNOTATION = "init";
// The value that is used by the javascript destroy annotation.
// e.g this.destroy = function foo(){}
- public static String DESTROY_ANNOTATION = "destroy";
+ public static final String DESTROY_ANNOTATION = "destroy";
// The value that is used by the javascript undispatched annotation.
// e.g this.undispatched = function foo(){}
- public static String UNDISPATCHED_ANNOTATION = "undispatched";
+ public static final String UNDISPATCHED_ANNOTATION = "undispatched";
// The value that is used by the javascript scope annotation. e.g
this.scope = "application";
- public static String SCOPE_ANNOTATION = "scope";
+ public static final String SCOPE_ANNOTATION = "scope";
// The value that is used by the javascript documentation annotation.
// e.g this.documentation = "documentation";
- public static String DOCUMENTATION_ANNOTATION = "scope";
+ public static final String DOCUMENTATION_ANNOTATION = "scope";
// The value that is used by the javascript targetNamespace annotation.
// e.g this.targetNamespace = "http://foo.com";
- public static String TARGET_NAMESPACE_ANNOTATION = "targetNamespace";
+ public static final String TARGET_NAMESPACE_ANNOTATION = "targetNamespace";
// The value that is used by the javascript schemaTargetNamespace
annotation.
// e.g this.schemaTargetNamespace = "http://foo.com?xsd";
- public static String SCHEMA_TARGET_NAMESPACE_ANNOTATION =
"schemaTargetNamespace";
+ public static final String SCHEMA_TARGET_NAMESPACE_ANNOTATION =
"schemaTargetNamespace";
// The value that is used by the javascript serviceName annotation.
// e.g this.serviceName = "serviceName";
- public static String SERVICE_NAME_ANNOTATION = "serviceName";
+ public static final String SERVICE_NAME_ANNOTATION = "serviceName";
// The value that is used by the javascript operationName annotation.
// e.g foo.operationName = "operationName";
// function foo () {}
- public static String OPERATION_NAME_ANNOTATION = "operationName";
+ public static final String OPERATION_NAME_ANNOTATION = "operationName";
// The value that is used by the javascript visible annotation.
// e.g foo.visible = false
// function foo () {}
- public static String VISIBLE_ANNOTATION = "visible";
+ public static final String VISIBLE_ANNOTATION = "visible";
// The value that is used by the javascript safe annotation.
// e.g foo.safe = true";
// function foo () {}
- public static String SAFE_ANNOTATION = "safe";
+ public static final String SAFE_ANNOTATION = "safe";
// The value that is used by the javascript inputTypes annotation.
// e.g foo.inputTypes = "string";
// function foo (a) {}
- public static String INPUT_TYPES_ANNOTATION = "inputTypes";
+ public static final String INPUT_TYPES_ANNOTATION = "inputTypes";
// The value that is used by the javascript outputType annotation.
// e.g foo.outputType = "string";
// function foo () {}
- public static String OUTPUT_TYPE_ANNOTATION = "outputType";
+ public static final String OUTPUT_TYPE_ANNOTATION = "outputType";
// The value that is used by the javascript httpMethod annotation.
// e.g foo.httpMethod = "GET";
// function foo () {}
- public static String HTTP_METHOD_ANNOTATION = "httpMethod";
+ public static final String HTTP_METHOD_ANNOTATION = "httpMethod";
// The value that is used by the javascript httpLocation annotation.
// e.g foo.httpLocation = "foo/{a}";
// function foo (a) {}
- public static String HTTP_LOCATION_ANNOTATION = "httpLocation";
+ public static final String HTTP_LOCATION_ANNOTATION = "httpLocation";
// The value that is used by the javascript deployer as the prefix for the
default target
// namespaces. The target namespace will be of the form
// "http://services.mashup.wso2.org/" + serviceName and the
schemaTargetNamespace will be of the
// form http://services.mashup.wso2.org/" + serviceName + "?xsd";
- public static String TARGET_NAMESPACE_PREFIX =
"http://services.mashup.wso2.org/";
+ public static final String TARGET_NAMESPACE_PREFIX =
"http://services.mashup.wso2.org/";
//The name of the work Directory that we create a Axis2 Repository
- public static String WORK_DIRECTORY = ".work";
+ public static final String WORK_DIRECTORY = ".work";
//The name of the Directory that we create a Axis2 Repository that the
Mashup Server can
// use when its acting as a client
- public static String REPO_DIRECTORY = "repo";
+ public static final String REPO_DIRECTORY = "repo";
//The name of the Directory that we drop in Axis2 modules that the Mashup
Server can
// use when its acting as a client
- public static String MODULES_DIRECTORY = "modules";
+ public static final String MODULES_DIRECTORY = "modules";
// The system property that points to the WSAS home directory
- public static String WSO2WSAS_HOME = "wso2wsas.home";
+ public static final String WSO2WSAS_HOME = "wso2wsas.home";
// Refers to the rampart module
- public static String RAMPART = "rampart";
+ public static final String RAMPART = "rampart";
- public static int BUFFER_SIZE = 40960;
+ public static final int BUFFER_SIZE = 40960;
}
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev