ActionMapping->abstract

This commit is contained in:
jy.hu
2014-10-28 16:45:47 +08:00
parent 0427716348
commit 2d5d65ff0b
28 changed files with 106 additions and 46 deletions
@@ -71,24 +71,6 @@ public class MessageUtil {
}
}
/**
* 获取对应的mapping key
*
* @param xmlMsg
* @return
* @throws DocumentException
* @see com.foxinmy.weixin4j.server.WeixinActionMapping
*/
public static String getMappingKey(String xmlMsg) throws DocumentException {
Document doc = DocumentHelper.parseText(xmlMsg);
String msgType = doc.selectSingleNode("/xml/MsgType").getStringValue();
if (msgType.equalsIgnoreCase(MessageType.event.name())) {
msgType += "_"
+ doc.selectSingleNode("/xml/Event").getStringValue();
}
return msgType;
}
/**
* xml消息转换为消息对象
*