Package org.hamster.weixinmp.dao.entity.base

Examples of org.hamster.weixinmp.dao.entity.base.WxBaseRespEntity


  public @ResponseBody
  String post(@RequestBody String requestBody) throws DocumentException, WxException {
    WxBaseMsgEntity msg = messageService.parseXML(requestBody);
    log.info("received " + msg.getMsgType() + " message.");
   
    WxBaseRespEntity resp = messageService.handleMessage(msg);
   
    return messageService.parseRespXML(resp).asXML();
  }
View Full Code Here


    List<WxMessageHandlerIfc> handlerList = new ArrayList<WxMessageHandlerIfc>();
    handlerList.addAll(handlers);
    Collections.sort(handlerList, new WxMessageHandlerComparator());
   
    Map<String, Object> context = new HashMap<String, Object>();
    WxBaseRespEntity result = null;
    for (WxMessageHandlerIfc handler : handlerList) {
      result = handler.handle(msg, context);
    }
   
    if (result == null) {
View Full Code Here

TOP

Related Classes of org.hamster.weixinmp.dao.entity.base.WxBaseRespEntity

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.