private int handleMigApi(String parstr,ChannelHandlerContext ctx, HttpRequest req) {
		if (parstr == null)
			return -1;
		String[] pars = parstr.split("&");
		String appSrcPath, appDestPath;
		String srcIp;

		if (pars[0].indexOf("srcip=") == 0) {
			srcIp = pars[0].substring(pars[0].indexOf("=") + 1);
		} else
			return -1;
		if (pars[1].indexOf("appsp=") == 0) {
			appSrcPath = pars[1].substring(pars[1].indexOf("=") + 1);
		} else
			return -1;
		if (pars[2].indexOf("appdp=") == 0) {
			appDestPath = pars[2].substring(pars[2].indexOf("=") + 1);
		} else
			return -1;
		logger.info("migapi srcIp:" + srcIp + "  appSrcPath:" + appSrcPath
				+ "  appDestPath:" + appDestPath);
		MigClientThread ct = new MigClientThread(srcIp, appSrcPath, appDestPath, ctx, req);
		ct.start();
		return 0;
	}