2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
25 package org.openecomp.datarouter.util;
27 public class DataRouterConstants {
28 public static final String DR_FILESEP = (System.getProperty("file.separator") == null) ? "/"
29 : System.getProperty("file.separator");
31 public static final String DR_AJSC_HOME = System.getProperty("AJSC_HOME");
33 public static final String DR_SPECIFIC_CONFIG = System.getProperty("CONFIG_HOME") + DR_FILESEP;
35 public static final String DR_BUNDLECONFIG_NAME = (System.getProperty("BUNDLECONFIG_DIR") == null)
36 ? "bundleconfig" : System.getProperty("BUNDLECONFIG_DIR");
38 public static final String DR_HOME_BUNDLECONFIG = (DR_AJSC_HOME == null)
39 ? DR_FILESEP + "opt" + DR_FILESEP + "app" + DR_FILESEP
40 + "datalayer" + DR_FILESEP + DR_BUNDLECONFIG_NAME
41 : DR_AJSC_HOME + DR_FILESEP + DR_BUNDLECONFIG_NAME;
43 /** This is the etc directory, relative to AAI_HOME. */
44 public static final String DR_HOME_ETC = DR_HOME_BUNDLECONFIG + DR_FILESEP + "etc" + DR_FILESEP;
46 public static final String DR_HOME_MODEL = DR_SPECIFIC_CONFIG + "model" + DR_FILESEP;
47 public static final String DR_HOME_AUTH = DR_SPECIFIC_CONFIG + "auth" + DR_FILESEP;
49 public static final String DR_CONFIG_FILE = DR_SPECIFIC_CONFIG + "data-router.properties";
51 public static final String DR_HOME_ETC_OXM = DR_HOME_ETC + "oxm" + DR_FILESEP;
53 public static final String UI_FILTER_LIST_FILE =
54 DR_SPECIFIC_CONFIG + DR_FILESEP + "filters" + DR_FILESEP + "aaiui_filters.json";
57 public static final String AAI_ECHO_SERVICE = "/util/echo";
60 public static final String DATA_ROUTER_SERVICE_NAME = "DataRouter";