Class CustomMessageHandler

  • All Implemented Interfaces:
    com.foxinmy.weixin4j.handler.WeixinMessageHandler

    public class CustomMessageHandler
    extends Object
    implements com.foxinmy.weixin4j.handler.WeixinMessageHandler
    自定义处理消息
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • CustomMessageHandler

        public CustomMessageHandler()
    • Method Detail

      • canHandle

        public boolean canHandle​(com.foxinmy.weixin4j.request.WeixinRequest request,
                                 com.foxinmy.weixin4j.request.WeixinMessage message,
                                 Set<String> nodeNames)
        Specified by:
        canHandle in interface com.foxinmy.weixin4j.handler.WeixinMessageHandler
      • doHandle

        public com.foxinmy.weixin4j.response.WeixinResponse doHandle​(com.foxinmy.weixin4j.request.WeixinRequest request,
                                                                     com.foxinmy.weixin4j.request.WeixinMessage messager)
        Specified by:
        doHandle in interface com.foxinmy.weixin4j.handler.WeixinMessageHandler
      • weight

        public int weight()
        Specified by:
        weight in interface com.foxinmy.weixin4j.handler.WeixinMessageHandler