本文整理汇总了Java中org.jivesoftware.smack.util.PacketParserUtils.updateText方法的典型用法代码示例。如果您正苦于以下问题:Java PacketParserUtils.updateText方法的具体用法?Java PacketParserUtils.updateText怎么用?Java PacketParserUtils.updateText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jivesoftware.smack.util.PacketParserUtils
的用法示例。
在下文中一共展示了PacketParserUtils.updateText方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setResource
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
public void setResource(String resource) {
PacketParserUtils.updateText(bindEl, "resource", resource);
}
示例2: setJid
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
public void setJid(String jid) {
PacketParserUtils.updateText(bindEl, "jid", jid);
}
示例3: setAttributes
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
/**
* Sets the account attributes. The map must only contain String key/value
* pairs.
*
* @param attributes
* the account attributes.
*/
public void setAttributes(Map<String, String> attributes) {
for (Entry<String, String> attribute : attributes.entrySet()) {
PacketParserUtils.updateText(queryEl, attribute.getKey(),
attribute.getValue());
}
}
示例4: setUsername
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
/**
* Sets the username.
*
* @param username
* the username.
*/
public void setUsername(String username) {
PacketParserUtils.updateText(queryEl, "username", username);
}
示例5: setPassword
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
/**
* Sets the plain text password.
*
* @param password
* the password.
*/
public void setPassword(String password) {
PacketParserUtils.updateText(queryEl, "password", password);
}
示例6: setDigest
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
/**
* Sets the digest value directly. Password digests offer a more secure
* alternative for authentication compared to plain text. The digest is the
* hex-encoded SHA-1 hash of the connection ID plus the user's password. If
* the digest and password are set, digest authentication will be used. If
* only one value is set, the respective authentication mode will be used.
*
* @param digest
* the digest, which is the SHA-1 hash of the connection ID the
* user's password, encoded as hex.
* @see org.jivesoftware.smack.Connection#getConnectionID()
*/
public void setDigest(String digest) {
PacketParserUtils.updateText(queryEl, "digest", digest);
}
示例7: setResource
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
/**
* Sets the resource.
*
* @param resource
* the resource.
*/
public void setResource(String resource) {
PacketParserUtils.updateText(queryEl, "resource", resource);
}
示例8: setInstructions
import org.jivesoftware.smack.util.PacketParserUtils; //导入方法依赖的package包/类
/**
* Sets the registration instructions.
*
* @param instructions
* the registration instructions.
*/
public void setInstructions(String instructions) {
PacketParserUtils.updateText(queryEl, "instructions", instructions);
}