+ private String getBaseUrl(String suffixUrl) {
+ String url = "";
+ try {
+ url = MicroServiceConfig.getMsbServerAddr() + suffixUrl;
+ } catch (Exception e) {
+ log.info("Failed to get msb address");
+ }
+ if (url.equals("")) {
+ try {
+ url = "https:\\\\" + MicroServiceConfig.getServiceAddrInfoFromCBS("aai_config")
+ + suffixUrl;
+ } catch (Exception e) {
+ log.info("Failed to get aai address");
+ }
+ }
+ return url;
+ }
+
+ private String getMsbSuffixAddr(String suffixUrl) {
+ String[] addrSplits = suffixUrl.substring(1).split("/");
+ String ret = addrSplits[1];
+ addrSplits[1] = addrSplits[2];
+ addrSplits[2] = ret;
+ StringBuffer stringBuffer = new StringBuffer();
+ for (String split : addrSplits) {
+ stringBuffer.append("/" + split);
+ }
+ return stringBuffer.toString();
+ }
+