2 * Copyright 2017 ZTE Corporation.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.onap.aai.esr.common;
19 public class MsbConfig {
24 protected static String msbServerAddr;
26 protected static String cloudInfrastructureAddr;
28 protected static String externalSystemAddr;
30 protected static String networkAddr;
32 protected static String multiCloudAddr;
34 protected static String msbDiscoveryIp;
36 protected static String msbDiscoveryPort;
38 public static void setCloudInfrastructureAddr(String address) {
39 cloudInfrastructureAddr = address;
42 public static String getCloudInfrastructureAddr() {
43 return msbServerAddr + "/api/aai-cloudInfrastructure/v11";
46 public static String getExternalSystemAddr() {
47 return msbServerAddr + "/api/aai-externalSystem/v11";
50 public static String getExternalSystemAddrV16() {
51 return msbServerAddr + "/api/aai-externalSystem/v16";
55 public static void setExternalSystemAddr(String Addr) {
56 externalSystemAddr = Addr;
59 public static String getNetworkAddr() {
60 return msbServerAddr + "/api/aai-network/v11";
63 public static void setNetworkAddr(String address) {
64 networkAddr = address;
67 public static void setMultiCloudAddr(String address) {
68 multiCloudAddr = address;
71 public static String getMultiCloudAddr() {
72 return msbServerAddr + "/api/multicloud/v1";
75 public static String getMsbDiscoveryIp() {
76 return msbDiscoveryIp;
79 public static void setMsbDiscoveryIp(String discoveryIp) {
80 msbDiscoveryIp = discoveryIp;
83 public static String getMsbDiscoveryPort() {
84 return msbDiscoveryPort;
87 public static void setMsbDiscoveryPort(String discoveryPort) {
88 msbDiscoveryPort = discoveryPort;
91 public static String getMsbServerAddr() {
95 public static void setMsbServerAddr(String msbServerAddr) {
96 MsbConfig.msbServerAddr = msbServerAddr;