28 lines
811 B
Java
28 lines
811 B
Java
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();
|
||
|
|
}
|
||
|
|
}
|