public class ClickMenuConfigHandler extends AbstractMenuConfigHandler
MENU_ID_NAME
LOGGER
Constructor and Description |
---|
ClickMenuConfigHandler() |
Modifier and Type | Method and Description |
---|---|
protected <T> String |
getContent(T message)
获得消息的文本内容
|
protected boolean |
isMatchMessage(String content,
WeiXinContext context)
根据消息内容判断是否存在匹配的菜单(适合菜单还未建立)
|
protected <T> boolean |
isMatchType(T message)
判断消息类型是否一致
|
<T> void |
process(T message,
WeiXinContext context)
处理对象
|
protected <T,OUTPUT> OUTPUT |
wrapperReplyMessage(T message,
String content)
对响应消息进行包装并返回
|
getMenuConfigManager, getWeiXinHandlerMode, getWeiXinSessionManager, isMatch, isMatchByMenuId, setMenuConfigManager, setWeiXinSessionManager
compareTo, getPriority, setPriority
protected <T> boolean isMatchType(T message)
AbstractMenuConfigHandler
isMatchType
in class AbstractMenuConfigHandler
protected <T,OUTPUT> OUTPUT wrapperReplyMessage(T message, String content)
AbstractMenuConfigHandler
wrapperReplyMessage
in class AbstractMenuConfigHandler
public <T> void process(T message, WeiXinContext context)
WeiXinHandler
process
in interface WeiXinHandler
process
in class AbstractMenuConfigHandler
protected <T> String getContent(T message)
AbstractMenuConfigHandler
getContent
in class AbstractMenuConfigHandler
protected boolean isMatchMessage(String content, WeiXinContext context)
AbstractMenuConfigHandler
isMatchMessage
in class AbstractMenuConfigHandler
Copyright © 2006–2018 TinyGroup. All rights reserved.