Modifier and Type | Method and Description |
---|---|
<OUTPUT,INPUT> |
WeiXinConvert.convert(INPUT input,
WeiXinContext context)
转换消息(微信报文会出现不同类型报文字段一致的情况,需要根据上下文判断)
|
<INPUT> boolean |
WeiXinConvert.isMatch(INPUT input,
WeiXinContext context)
判断转换接口能否处理输入信息(微信报文会出现不同类型报文字段一致的情况,需要根据上下文判断)
|
<T> boolean |
WeiXinHandler.isMatch(T message,
WeiXinContext context)
是否匹配对象和上下文
|
<T> void |
WeiXinHandler.process(T message,
WeiXinContext context)
处理对象
|
void |
WeiXinReceiver.receive(WeiXinContext context)
接收微信消息
|
String |
WeiXinManager.renderUrl(String key,
WeiXinContext context)
渲染URL资源
|
void |
WeiXinSender.send(ToServerMessage message,
WeiXinContext context)
发送微信消息
|
void |
WeiXinSender.upload(WeiXinHttpUpload upload,
WeiXinContext context)
上传微信文件
|
Modifier and Type | Method and Description |
---|---|
protected <INPUT> boolean |
AbstractWeiXinConvert.checkResultType(INPUT input,
WeiXinContext context)
检查返回结果是否和当前处理器匹配
|
<T> T |
JsonParser.parse(String result,
WeiXinContext context,
WeiXinConvertMode mode) |
<T> T |
TextParser.parse(String result,
WeiXinContext context,
WeiXinConvertMode mode) |
abstract <T> T |
AbstractParser.parse(String result,
WeiXinContext context,
WeiXinConvertMode mode) |
<T> T |
XmlParser.parse(String message,
WeiXinContext context,
WeiXinConvertMode mode) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
JsApiTicketConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
ErrorResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
OauthTokenResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected abstract boolean |
AbstractJSONObjectConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context)
根据报文内容进行判断
|
protected boolean |
AccessTokenConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
<OUTPUT,INPUT> |
AbstractJSONObjectConvert.convert(INPUT input,
WeiXinContext context) |
protected <OUTPUT> OUTPUT |
AbstractJSONObjectConvert.convertJSON(com.alibaba.fastjson.JSONObject input,
WeiXinContext context)
转换JSONObject为业务对象
|
<INPUT> boolean |
AbstractJSONObjectConvert.isMatch(INPUT input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
AbstractTextConvert.checkMatch(String input,
WeiXinContext context)
根据报文内容进行判断
|
<OUTPUT,INPUT> |
AbstractTextConvert.convert(INPUT input,
WeiXinContext context) |
protected abstract <OUTPUT> OUTPUT |
AbstractTextConvert.convertString(String input,
WeiXinContext context)
转换String报文
|
<INPUT> boolean |
AbstractTextConvert.isMatch(INPUT input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
UnSubscribeEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
MessageSendFinishEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
VideoMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
SelectLocationEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ViewEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
LinkMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
LocationEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
LocationMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
VoiceMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ScanPushEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ShortVideoMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
EncryptMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ScanEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
TextMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ImageMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ClickEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
ScanAlertEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected abstract boolean |
AbstractXmlNodeConvert.checkMatch(XmlNode input,
WeiXinContext context)
根据报文内容进行判断
|
protected boolean |
SubscribeEventConvert.checkMatch(XmlNode input,
WeiXinContext context) |
<OUTPUT,INPUT> |
AbstractXmlNodeConvert.convert(INPUT input,
WeiXinContext context) |
protected <OUTPUT> OUTPUT |
AbstractXmlNodeConvert.convertXmlNode(XmlNode input,
WeiXinContext context)
转换XmlNode为业务对象
|
<INPUT> boolean |
AbstractXmlNodeConvert.isMatch(INPUT input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
AbstractMenuConfigHandler.isMatch(T message,
WeiXinContext context) |
<T> boolean |
ReceiveParseHandler.isMatch(T message,
WeiXinContext context) |
<T> boolean |
CreateSignatureHandler.isMatch(T message,
WeiXinContext context) |
<T> boolean |
ErrorResultHandler.isMatch(T message,
WeiXinContext context) |
<T> boolean |
SendOutputParseHandler.isMatch(T message,
WeiXinContext context) |
<T> boolean |
VoiceConvertHandler.isMatch(T message,
WeiXinContext context) |
protected boolean |
AbstractMenuConfigHandler.isMatchMessage(String content,
WeiXinContext context)
根据消息内容判断是否存在匹配的菜单(适合菜单还未建立)
|
protected boolean |
ClickMenuConfigHandler.isMatchMessage(String content,
WeiXinContext context) |
<T> void |
AbstractMenuConfigHandler.process(T message,
WeiXinContext context) |
<T> void |
ClickMenuConfigHandler.process(T message,
WeiXinContext context) |
<T> void |
ReceiveParseHandler.process(T message,
WeiXinContext context) |
<T> void |
CreateSignatureHandler.process(T message,
WeiXinContext context) |
<T> void |
ErrorResultHandler.process(T message,
WeiXinContext context) |
<T> void |
SendOutputParseHandler.process(T message,
WeiXinContext context) |
<T> void |
VoiceConvertHandler.process(T message,
WeiXinContext context) |
Modifier and Type | Class and Description |
---|---|
class |
WeiXinContextDefault
默认的微信上下文实现
|
Modifier and Type | Method and Description |
---|---|
void |
WeiXinReceiverDefault.receive(WeiXinContext context) |
String |
WeiXinManagerDefault.renderUrl(String key,
WeiXinContext context) |
void |
WeiXinSenderDefault.send(ToServerMessage message,
WeiXinContext context) |
void |
WeiXinSenderDefault.upload(WeiXinHttpUpload upload,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
WeiXinParserUtil.parse(String content,
WeiXinContext context,
WeiXinConvertMode mode)
解析信息
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
MessageStatusResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
CustomerAccountListResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
WeiXinMenuResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
TempVideoResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
TempThumbResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
PermanentUrlResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
OtherListResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
PermanentMediaIdResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
NewsListResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
TempImageResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
TempVoiceResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
MaterialNumsResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DownloadBillResultConvert.checkMatch(String input,
WeiXinContext context) |
protected <OUTPUT> OUTPUT |
DownloadBillResultConvert.convertString(String input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
CommonRedEnvelopeResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
PayResultMessageConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
QueryRedEnvelopeResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
RefundResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
QueryOrderResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
GroupRedEnvelopeResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
CloseOrderResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
UnityCreateOrderResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
BusinessResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
CommunicationResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected boolean |
QueryRefundResultConvert.checkMatch(XmlNode input,
WeiXinContext context) |
protected <OUTPUT> OUTPUT |
QueryRefundResultConvert.convertXmlNode(XmlNode input,
WeiXinContext context)
因为动态字段的问题,采用人工解析
|
Modifier and Type | Method and Description |
---|---|
<T> boolean |
UnityCreateOrderResultHandler.isMatch(T message,
WeiXinContext context) |
<T> void |
UnityCreateOrderResultHandler.process(T message,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ShortUrlResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
UserListResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
protected boolean |
UserInfoResultConvert.checkMatch(com.alibaba.fastjson.JSONObject input,
WeiXinContext context) |
Copyright © 2006–2018 TinyGroup. All rights reserved.