98fdc62e99890c7d7a83dfec81e2887adaa6379b
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / util / DataRouterConstants.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.aai.datarouter.util;
22
23 public class DataRouterConstants {
24   public static final String DR_FILESEP = (System.getProperty("file.separator") == null) ? "/"
25       : System.getProperty("file.separator");
26   
27   public static final String DR_AJSC_HOME = System.getProperty("AJSC_HOME");
28
29   public static final String DR_SPECIFIC_CONFIG = System.getProperty("CONFIG_HOME") + DR_FILESEP;
30   
31   public static final String DR_BUNDLECONFIG_NAME = (System.getProperty("BUNDLECONFIG_DIR") == null)
32       ? "bundleconfig" : System.getProperty("BUNDLECONFIG_DIR");
33
34   public static final String DR_HOME_BUNDLECONFIG = (DR_AJSC_HOME == null)
35       ? DR_FILESEP + "opt" + DR_FILESEP + "app" + DR_FILESEP 
36           + "datalayer" + DR_FILESEP + DR_BUNDLECONFIG_NAME
37       : DR_AJSC_HOME + DR_FILESEP + DR_BUNDLECONFIG_NAME;
38
39   /** This is the etc directory, relative to AAI_HOME. */
40   public static final String DR_HOME_ETC = DR_HOME_BUNDLECONFIG + DR_FILESEP + "etc" + DR_FILESEP;
41
42   public static final String DR_HOME_MODEL = DR_SPECIFIC_CONFIG + "model" + DR_FILESEP;
43   public static final String DR_HOME_AUTH = DR_SPECIFIC_CONFIG + "auth" + DR_FILESEP;
44
45   public static final String DR_CONFIG_FILE = DR_SPECIFIC_CONFIG + "data-router.properties";
46
47   public static final String DR_HOME_ETC_OXM = DR_HOME_ETC + "oxm" + DR_FILESEP;
48   
49   public static final String UI_FILTER_LIST_FILE =
50       DR_SPECIFIC_CONFIG + "filters" + DR_FILESEP + "aaiui_filters.json";
51
52   // AAI Related
53   public static final String AAI_ECHO_SERVICE = "/util/echo";
54
55   // Logging related
56   public static final String DATA_ROUTER_SERVICE_NAME = "DataRouter";
57 }