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 void setExternalSystemAddr(String Addr) {
51 externalSystemAddr = Addr;
54 public static String getNetworkAddr() {
55 return msbServerAddr + "/api/aai-network/v11";
58 public static void setNetworkAddr(String address) {
59 networkAddr = address;
62 public static void setMultiCloudAddr(String address) {
63 multiCloudAddr = address;
66 public static String getMultiCloudAddr() {
67 return msbServerAddr + "/api/multicloud/v0";
70 public static String getMsbDiscoveryIp() {
71 return msbDiscoveryIp;
74 public static void setMsbDiscoveryIp(String discoveryIp) {
75 msbDiscoveryIp = discoveryIp;
78 public static String getMsbDiscoveryPort() {
79 return msbDiscoveryPort;
82 public static void setMsbDiscoveryPort(String discoveryPort) {
83 msbDiscoveryPort = discoveryPort;
86 public static String getMsbServerAddr() {
90 public static void setMsbServerAddr(String msbServerAddr) {
91 MsbConfig.msbServerAddr = msbServerAddr;