|
- package me.chanjar.weixin.api;
-
- import java.util.Map;
-
- import me.chanjar.weixin.bean.WxXmlMessage;
-
-
- /**
- * 微信消息拦截器,可以用来做验证
- * @author qianjia
- *
- */
- public interface WxMessageInterceptor {
-
- /**
- * 拦截微信消息
- * @param wxMessage
- * @param context 上下文,如果handler或interceptor之间有信息要传递,可以用这个
- * @return true代表OK,false代表不OK
- */
- public boolean intercept(WxXmlMessage wxMessage, Map<String, Object> context);
-
- }
|