| 程序包 | 说明 |
|---|---|
| me.chanjar.weixin.mp.api | |
| me.chanjar.weixin.mp.bean.message |
| 限定符和类型 | 方法和说明 |
|---|---|
WxMpXmlOutMessage |
WxMpMessageHandler.handle(WxMpXmlMessage wxMessage,
Map<String,Object> context,
WxMpService wxMpService,
WxSessionManager sessionManager) |
boolean |
WxMpMessageInterceptor.intercept(WxMpXmlMessage wxMessage,
Map<String,Object> context,
WxMpService wxMpService,
WxSessionManager sessionManager)
拦截微信消息
|
protected boolean |
WxMpMessageRouter.isDuplicateMessage(WxMpXmlMessage wxMessage) |
boolean |
WxMpMessageMatcher.match(WxMpXmlMessage message)
消息是否匹配某种模式
|
WxMpXmlOutMessage |
WxMpMessageRouter.route(WxMpXmlMessage wxMessage)
处理微信消息
|
protected WxMpXmlOutMessage |
WxMpMessageRouterRule.service(WxMpXmlMessage wxMessage,
WxMpService wxMpService,
WxSessionManager sessionManager,
WxErrorExceptionHandler exceptionHandler)
处理微信推送过来的消息
|
protected void |
WxMpMessageRouter.sessionEndAccess(WxMpXmlMessage wxMessage)
对session的访问结束
|
protected boolean |
WxMpMessageRouterRule.test(WxMpXmlMessage wxMessage)
将微信自定义的事件修正为不区分大小写,
比如框架定义的事件常量为click,但微信传递过来的却是CLICK
|
| 限定符和类型 | 方法和说明 |
|---|---|
static WxMpXmlMessage |
WxMpXmlMessage.fromEncryptedXml(InputStream is,
WxMpConfigStorage wxMpConfigStorage,
String timestamp,
String nonce,
String msgSignature) |
static WxMpXmlMessage |
WxMpXmlMessage.fromEncryptedXml(String encryptedXml,
WxMpConfigStorage wxMpConfigStorage,
String timestamp,
String nonce,
String msgSignature)
从加密字符串转换
|
static WxMpXmlMessage |
WxMpXmlMessage.fromXml(InputStream is) |
static WxMpXmlMessage |
WxMpXmlMessage.fromXml(String xml) |
Copyright © 2016. All rights reserved.