public class c {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
//
// String str = "002002 ,1 ,125 ,0 ,002002 ,3 ,FWD123 , , ,0 ,0 ,0 ,0 ,2006-12-26 11:40:42.0,2007-11-21 03:47:44.0,1 ,0 ,0 ,1 ,0 ,1 ,0 , ,1 ,0 ,广东行业网关 ";
// String field = "accountName,accountType,serviceType,accountPriorityLevel,equipmentCode,maxIFNum,password,backupAccountName,relativeAccountName,sendCallerAuthType,sendCalledAuthType,acceptCallerAuthType,acceptCalledAuthType,createTime,lastModifyTime,flowControlStrategy,flowControlValue,flowIncRatio,maxFlowLimit,flowDecRatio,minguaranteeValue,ifSendFlow,isShakehandUseShortConnect,ifReturnReport,isInternationalSmgAccount,description";
// String[] strs = str.split(",");
// String[] fields = field.split(",");
Map<String,String> map = new HashMap<String,String>();
// for(int i =0 ; i < strs.length ; i++)
// {
//
// System.out.println(fields[i]+":"+strs[i]);
// }
String url = "@10.71.167.62:1523:iagw";
// String url = "";
// int s = url.lastIndexOf(":");
// System.out.println(url.substring(url.lastIndexOf(":"),
// url.lastIndexOf(":") + 1));
System.out.println(url.substring(url.lastIndexOf(":")));
System.out.println(url.substring(url.lastIndexOf(":")).replace(':', '/'));
// url = url.replace(url.substring(url.lastIndexOf(":"),
// url.lastIndexOf(":") + 1), "/");
url = url.replace(url.substring(url.lastIndexOf(":")), url.substring(url.lastIndexOf(":")).replace(':', '/'));
System.out.println(url);
}
}
获取url的端口和实例名
最新推荐文章于 2022-10-31 15:54:27 发布