public class WxMpXmlMessage extends Object implements Serializable
| 构造器和说明 |
|---|
WxMpXmlMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
WxMpXmlMessage |
decryptField(WxMpConfigStorage wxMpConfigStorage,
String timestamp,
String nonce,
String msgSignature) |
static WxMpXmlMessage |
fromEncryptedXml(InputStream is,
WxMpConfigStorage wxMpConfigStorage,
String timestamp,
String nonce,
String msgSignature) |
static WxMpXmlMessage |
fromEncryptedXml(String encryptedXml,
WxMpConfigStorage wxMpConfigStorage,
String timestamp,
String nonce,
String msgSignature)
从加密字符串转换.
|
static WxMpXmlMessage |
fromXml(InputStream is) |
static WxMpXmlMessage |
fromXml(String xml) |
String |
getMsgType()
当接受用户消息时,可能会获得以下值:
WxConsts.XmlMsgType#TEXT
WxConsts.XmlMsgType#IMAGE
WxConsts.XmlMsgType#VOICE
WxConsts.XmlMsgType#VIDEO
WxConsts.XmlMsgType#LOCATION
WxConsts.XmlMsgType#LINK
WxConsts.XmlMsgType#EVENT
|
void |
setMsgType(String msgType)
当发送消息的时候使用:
WxConsts.XmlMsgType#TEXT
WxConsts.XmlMsgType#IMAGE
WxConsts.XmlMsgType#VOICE
WxConsts.XmlMsgType#VIDEO
WxConsts.XmlMsgType#NEWS
WxConsts.XmlMsgType#MUSIC
|
String |
toString() |
public static WxMpXmlMessage fromXml(String xml)
public static WxMpXmlMessage fromXml(InputStream is)
public static WxMpXmlMessage fromEncryptedXml(String encryptedXml, WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce, String msgSignature)
encryptedXml - 密文wxMpConfigStorage - 配置存储器对象timestamp - 时间戳nonce - 随机串msgSignature - 签名串public static WxMpXmlMessage fromEncryptedXml(InputStream is, WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce, String msgSignature)
public WxMpXmlMessage decryptField(WxMpConfigStorage wxMpConfigStorage, String timestamp, String nonce, String msgSignature)
public String getMsgType()
当接受用户消息时,可能会获得以下值:WxConsts.XmlMsgType#TEXTWxConsts.XmlMsgType#IMAGEWxConsts.XmlMsgType#VOICEWxConsts.XmlMsgType#VIDEOWxConsts.XmlMsgType#LOCATIONWxConsts.XmlMsgType#LINKWxConsts.XmlMsgType#EVENT
public void setMsgType(String msgType)
当发送消息的时候使用:WxConsts.XmlMsgType#TEXTWxConsts.XmlMsgType#IMAGEWxConsts.XmlMsgType#VOICEWxConsts.XmlMsgType#VIDEOWxConsts.XmlMsgType#NEWSWxConsts.XmlMsgType#MUSIC
Copyright © 2024. All rights reserved.