2018-12-03 10:44:14 +08:00
|
|
|
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;
|
|
|
|
|
|
2018-12-03 15:27:53 +08:00
|
|
|
import com.gzzn.omms.msgexchangeapi.entity.msg.Msg;
|
2018-12-04 09:57:02 +08:00
|
|
|
import com.gzzn.omms.msgexchangeapi.entity.msg.schd.dnld.FLTR;
|
2018-12-03 10:44:14 +08:00
|
|
|
import com.gzzn.omms.msgexchangeapi.service.IExchangeService;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
public class MsgHandlerDispatcher {
|
|
|
|
|
@Autowired
|
|
|
|
|
IExchangeService exchangeService;
|
|
|
|
|
|
2018-12-04 09:57:02 +08:00
|
|
|
public List<FLTR> dispatch(String xmlMsg)
|
2018-12-03 10:44:14 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Msg msg = exchangeService.xmlstrToObject(xmlMsg, Msg.class);
|
|
|
|
|
String type = msg.getMeta().getType();
|
|
|
|
|
String subType = msg.getMeta().getStyp();
|
|
|
|
|
|
|
|
|
|
return Collections.emptyList();
|
|
|
|
|
}
|
|
|
|
|
}
|