android+smack+openfire
我对将开放服务器信息获取到java程序
- 显示现有用户到新注册用户
- 添加和从组中删除有一些疑问
I have some doubts in getting the open server information to java program
- dispalying the already existing users to newly registred user
- add and delete from groups
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于第一部分:通常,用户只会看到自己的联系人(用 jabber 术语来说:名册)。如果您为小型社区维护 xmpp 服务器,则可以实现自定义注册过程:
2.1 创建新用户帐户
2.2 将用户添加到该组
因此,“allUser”组的所有成员都应该在用户名册上
(我自己从来没有这样做过,可能有必要直接在openfire服务器上实现这个自定义注册例程,因为我担心,xmpp协议不支持添加和删除组)
For the first part: Usually, a user will only see his own contacts (in jabber terms: roster). If you maintain a xmpp server for a small community, you could implement a custom registration process:
2.1 create a new user account
2.2 add the user to that group
As a result, all members of the "allUser" group should be on the users roster
(Never did it myself and it may be necessary to implement this custom registration routine on the openfire server directly, because I fear, that the xmpp protocol does not support adding to and deleting from groups)
您可以使用“注册插件”,它可以在 Open Fire 的插件选项卡中找到。使用它并将注册设置更改为“将所有注册用户添加到一个组中”
you can use "Registration Plugin" which can be found in plugins tab of open fire. Use that and change the registration settings to "add all registered users into a group"