01: /*
02: * Copyright (c) 2006, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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.wso2.esb;
18:
19: import java.net.URI;
20:
21: /*
22: * ServiceBusConstants use by WSO2 ESB
23: */
24: public final class ServiceBusConstants {
25:
26: public static final String MESSAGE_MAP_KEY = "Message_Map_Key";
27: public static final String IN_MESSAGE_MAP_KEY = "IN_Message_Map_Key";
28: public static final String OUT_MESSAGE_MAP_KEY = "OUT_Message_Map_Key";
29: public static final String IN_FAULT_MESSAGE_MAP_KEY = "IN_FAULT_Message_Map_Key";
30: public static final String OUT_FAULT_MESSAGE_MAP_KEY = "OUT_FAULT_Message_Map_Key";
31: public static final String ADMIN_TRANSPORT = "admin/https";
32: public static final String HTTP_TRANSPORT = "http";
33: public static final String HTTPS_TRANSPORT = "https";
34:
35: public static final String ADMIN_SERVICE_GROUP = "ESBAdmin";
36: public static final String ESB_INSTANCE = "WSO2 ESB";
37: public static final String ESB_XML_NAMESPACE = "http://www.wso2.org/projects/esb";
38: public static final String ESB_WEB_XML_KEY = "ESB_WEB_XML_KEY";
39: public static final String ESB_HOME = "esb.home";
40:
41: public static final String WELCOME_PAGE = "INDEX_HTML_FILE";
42: public static final String GENERATED_PAGES = "wso2esb.generated.pages";
43:
44: // ServiceBusConstants for ESB registry
45: public static final int LOCAL_HOST_REGISTRY = 100;
46: public static final int REMOTE_HOST_REGISTRY = 101;
47: public static final int REGISTRY_MODE = LOCAL_HOST_REGISTRY;
48: // this will be overwritten if localRegistry parameter is set
49: public static final String LOCAL_REGISTRY_ROOT = "registry/";
50: public static final String REGISTRY_FILE = "file";
51: public static final String REGISTRY_FOLDER = "folder";
52: public static final URI folder = URI
53: .create("http://wso2.org/projects/esb/registry/types/folder");
54: // use if the exact file type is not known
55: public static final URI file = URI
56: .create("http://wso2.org/projects/esb/registry/types/file");
57:
58: public static final String WSO2ESB_HB_CONFIG_KEY = "wso2esb_hb_configuration_key";
59:
60: public static final String ESB_SERVER_XML = "esb.xml";
61: public static final String ESB_SERVER_WEB_XML = "server-web.xml";
62: public static final String ESB_UI_EXTENSIONS_CONFIG_XML = "ui-extensions-config.xml";
63: public static final String ESB_HIBERNATE_CFG_XML = "wso2esb.hibernate.cfg.xml";
64: public static final String ESB_DERBY_SYSTEM_HOME = "derby.system.home";
65: public static final String ESB_CONF_DIRECTORY = "webapp/WEB-INF/classes/conf/";
66:
67: public static class Logging {
68: public static String ESB_CONSOLE_APPENDER = "ESB_CONSOLE_APPENDER";
69: public static String ESB_LOG_FILE_APPENDER = "ESB_LOG_FILE_APPENDER";
70: public static String ESB_MEMORY_APPENDER = "ESB_MEMORY_APPENDER";
71: }
72:
73: // ServiceBusConstants for DataBase Access
74: public static class DBAccess {
75: public static final String DERBY_NETWOEK_SERVER_DRIVER = "org.apache.derby.jdbc.ClientDriver";
76: public static final String STATISTICS_DO = "StatisticsDO";
77: }
78: }
|