Package com.foxinmy.weixin4j.dispatcher
Interface WeixinMessageMatcher
-
- All Known Implementing Classes:
DefaultMessageMatcher
public interface WeixinMessageMatcher
微信消息匹配- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
DefaultMessageMatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<? extends WeixinMessage>
match(WeixinMessageKey messageKey)
匹配消息类型void
regist(WeixinMessageKey messageKey, Class<? extends WeixinMessage> messageClass)
注册消息类型「程序没有及时更新而微信又产生了新的消息类型」
-
-
-
Method Detail
-
match
Class<? extends WeixinMessage> match(WeixinMessageKey messageKey)
匹配消息类型- Parameters:
messageKey
- 消息key- Returns:
- 消息类型
-
regist
void regist(WeixinMessageKey messageKey, Class<? extends WeixinMessage> messageClass)
注册消息类型「程序没有及时更新而微信又产生了新的消息类型」- Parameters:
messageKey
- 消息keymessageClass
- 消息类型
-
-