Class CustomMessageHandler
- java.lang.Object
-
- com.foxinmy.weixin4j.example.server.handler.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 Summary
Constructors Constructor Description CustomMessageHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(com.foxinmy.weixin4j.request.WeixinRequest request, com.foxinmy.weixin4j.request.WeixinMessage message, Set<String> nodeNames)
com.foxinmy.weixin4j.response.WeixinResponse
doHandle(com.foxinmy.weixin4j.request.WeixinRequest request, com.foxinmy.weixin4j.request.WeixinMessage messager)
int
weight()
-
-
-
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 interfacecom.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 interfacecom.foxinmy.weixin4j.handler.WeixinMessageHandler
-
weight
public int weight()
- Specified by:
weight
in interfacecom.foxinmy.weixin4j.handler.WeixinMessageHandler
-
-