Package com.ufis_as.ufisapp.server.dto

Examples of com.ufis_as.ufisapp.server.dto.EntUfisMsgDTO


       
        Date init = new Date();
        long initMiliSec = init.getTime();
       
        //ObjectMapper mapper = new ObjectMapper();
        EntUfisMsgDTO ufisMsgDTO = mapper.readValue(message, EntUfisMsgDTO.class);
       
        clsBlAMQRouter.routeUfisAMQMessage(ufisMsgDTO, dtflString);
       
        LOG.info("Total processing time : <{}>ms", new Date().getTime() - initMiliSec);
      } else {
View Full Code Here


        LOG.debug("Received msg : \n{}", message);
       
        long start = System.currentTimeMillis();
        //Internal communication via AMQ is in JSON format
        //ObjectMapper mapper = new ObjectMapper();
        EntUfisMsgDTO ufisMsgDTO = mapper.readValue(message, EntUfisMsgDTO.class);
        clsBlAMQRouter.routeUfisAMQMessage(ufisMsgDTO, dtflString);
        LOG.info("Total processing time : {} ms", (System.currentTimeMillis() - start));
      } else {
        LOG.warn("Message of wrong type: {}", inMessage.getClass().getName());
      }
View Full Code Here

  public boolean process(String message) {
   
    try {
      ObjectMapper mapper = new ObjectMapper();
      EntUfisMsgDTO msgDTO = mapper.readValue(message, EntUfisMsgDTO.class);
     
      if(msgDTO == null) {
        LOG.error("Wrong message format. The message will be dropped.");
        return false;
      }
     
      EntUfisMsgBody body = msgDTO.getBody();
      List<EntUfisMsgACT> actions = body.getActs();
     
      if(msgDTO == null || body == null || actions == null || actions.isEmpty()) {
        LOG.error("Message body is not provided. The message will be dropped.");
        return false;
View Full Code Here

TOP

Related Classes of com.ufis_as.ufisapp.server.dto.EntUfisMsgDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.