提交整体消息转换分发处理框架

This commit is contained in:
zhouxiunai
2018-12-03 10:44:14 +08:00
parent 48d37b2bf7
commit 021de12235
9 changed files with 267 additions and 51 deletions
@@ -0,0 +1,27 @@
package com.gzzn.omms.msgexchangeapi.msghandler;
import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gzzn.omms.msgexchangeapi.domain.primary.entity.msg.Msg;
import com.gzzn.omms.msgexchangeapi.domain.secondary.entity.FlightInfo;
import com.gzzn.omms.msgexchangeapi.service.IExchangeService;
@Service
public class MsgHandlerDispatcher {
@Autowired
IExchangeService exchangeService;
public List<FlightInfo> dispatch(String xmlMsg)
{
Msg msg = exchangeService.xmlstrToObject(xmlMsg, Msg.class);
String type = msg.getMeta().getType();
String subType = msg.getMeta().getStyp();
return Collections.emptyList();
}
}