国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
認識smack中的基本對象 - Registration

一 Registration類的介紹

Registration是信息查詢包IQ的子類,所以它也包含表示操作類型的四個屬性:GET/SET等,當(dāng)其類型屬性為GET時,表示從服務(wù)器獲取注冊對象的信息;而SET類型則表示創(chuàng)建用戶,或者是更新已有用戶的賬戶資料。當(dāng)創(chuàng)建一個新賬戶時,XMPP服務(wù)器會需要一系列的其他屬性值,標準的賬戶屬性值列表如下:

name: 用戶名稱

first: 用戶的姓

last: 用戶的名稱

email: Email地址

city: 所在城市

state: 所在的州

zip: 郵編

phone: 手機號

url: 用戶的個人主頁

date: 注冊日期

misc: 相關(guān)的文字信息

remove: 賬戶是否停用的標志

Represents registration packets. An empty GET query will cause the server to return information about it's registration support. SET queries can be used to create accounts or update existing account information. XMPP servers may require a number of attributes to be set when creating a new account. The standard account attributes are as follows:
·name -- the user's name.
·first -- the user's first name.
·last -- the user's last name.
·email -- the user's email address.
·city -- the user's city.
·state -- the user's state.
·zip -- the user's ZIP code.
·phone -- the user's phone number.
·url -- the user's website.
·date -- the date the registration took place.
·misc -- other miscellaneous information to associate with the account.
·text -- textual information to associate with the account.
·remove -- empty flag to remove account.

二 常用方法

設(shè)置、獲取注冊賬戶的鍵值對。

getAttributes
public Map<String,String> getAttributes() Returns the map of String key/value pairs of account attributes.

Returns:the account attributes.
--------------------------------------------------------------------------------

setAttributes
public void setAttributes(Map<String,String> attributes) Sets the account attributes. The map must only contain String key/value pairs.

Parameters:attributes - the account attributes.
--------------------------------------------------------------------------------

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
銀行系統(tǒng)需求分析
簡單聊聊對象淺拷貝和深拷貝,真不簡單!
使用StringBuilder, StringBuilder和String的區(qū)別 - 專注...
htmlparser
JavaScript String 對象小結(jié)
如何快速申請EDU郵箱?
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服