Examples of WxBaseRespEntity


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

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

    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
Copyright © 2018 www.massapi.com. 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.