Package com.qq.weixin.sdk.message

Examples of com.qq.weixin.sdk.message.MessageEvent


    return filterChain.doFilterChain(message);
  }

  @Override
  protected void parseSpecialMessage(Message message, Element root) {
    MessageEvent messageEvent = (MessageEvent) message;
    messageEvent.setEvent(root.getElementsByTagName(TAG_EVENT).item(0).getTextContent());
    messageEvent.setEventKey(root.getElementsByTagName(TAG_EVENTKEY).item(0).getTextContent());
  }
View Full Code Here


    String type = (root.getElementsByTagName(TAG_MSGTYPE)).item(0).getTextContent();// filter CDATA... -- text/image/...
    if (type.equalsIgnoreCase(MESSAGE_TEXT)) {// put it first,because most of time is text
      message = new MessageText();
      messageHadler = new MessageHandlerText();
    } else if (type.equalsIgnoreCase(MESSAGE_EVENT)) {// do subscribe event
      message = new MessageEvent();
      messageHadler = new MessageHandlerEvent();
    } else if (type.equalsIgnoreCase(MESSAGE_IMAGE)) {
      message = new MessageImage();
      messageHadler = new MessageHandlerImage();
    } else if (type.equalsIgnoreCase(MESSAGE_LINK)) {
View Full Code Here

TOP

Related Classes of com.qq.weixin.sdk.message.MessageEvent

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.