public class WxCpXmlMessage extends Object implements Serializable
微信推送过来的消息,也是同步回复给用户的消息,xml格式 相关字段的解释看微信开发者文档: https://work.weixin.qq.com/api/doc#12973 https://work.weixin.qq.com/api/doc#12974
限定符和类型 | 类和说明 |
---|---|
static class |
WxCpXmlMessage.ExtAttr
The type Ext attr.
|
static class |
WxCpXmlMessage.ScanCodeInfo
The type Scan code info.
|
static class |
WxCpXmlMessage.SelectedItem
The type selected Items.
|
static class |
WxCpXmlMessage.SendLocationInfo
The type Send location info.
|
static class |
WxCpXmlMessage.SendPicsInfo
The type Send pics info.
|
构造器和说明 |
---|
WxCpXmlMessage() |
限定符和类型 | 方法和说明 |
---|---|
static WxCpXmlMessage |
fromEncryptedXml(InputStream is,
WxCpConfigStorage wxCpConfigStorage,
String timestamp,
String nonce,
String msgSignature)
From encrypted xml wx cp xml message.
|
static WxCpXmlMessage |
fromEncryptedXml(String encryptedXml,
WxCpConfigStorage wxCpConfigStorage,
String timestamp,
String nonce,
String msgSignature)
从加密字符串转换.
|
protected static WxCpXmlMessage |
fromXml(InputStream is)
From xml wx cp xml message.
|
protected static WxCpXmlMessage |
fromXml(String xml)
From xml wx cp xml message.
|
static WxCpXmlMessage |
fromXml(String xml,
String agentId)
From xml wx cp xml message.
|
String |
toString() |
protected static WxCpXmlMessage fromXml(String xml)
xml
- the xmlpublic static WxCpXmlMessage fromXml(String xml, String agentId)
xml
- the xmlagentId
- the agent idprotected static WxCpXmlMessage fromXml(InputStream is)
is
- the ispublic static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigStorage wxCpConfigStorage, String timestamp, String nonce, String msgSignature)
encryptedXml
- the encrypted xmlwxCpConfigStorage
- the wx cp config storagetimestamp
- the timestampnonce
- the noncemsgSignature
- the msg signaturepublic static WxCpXmlMessage fromEncryptedXml(InputStream is, WxCpConfigStorage wxCpConfigStorage, String timestamp, String nonce, String msgSignature)
is
- the iswxCpConfigStorage
- the wx cp config storagetimestamp
- the timestampnonce
- the noncemsgSignature
- the msg signatureCopyright © 2024. All rights reserved.