我正在使用链接使用PUBSUB协议创建节点 http://download.igniterealtime.org/smack/docs/latest/documentation/extensions/pubsub.html
有人可以帮助我获取为特定用户创建的订阅项目列表吗?这是我的代码:
PubSubManager manager = PubSubManager.getInstance(connection);
LeafNode leaf = mgr.createNode("testNode");
ConfigureForm form = new ConfigureForm(FormType.submit);
form.setAccessModel(AccessModel.open);
form.setDeliverPayloads(false);
form.setNotifyRetract(true);
form.setPersistentItems(true);
form.setPublishModel(PublishModel.open);
leaf.sendConfigurationForm(form);
我愿意做这样的事情
manager.getAllListofSubscriedItems(){
// TO DO Implementation here, **Need some idea here**
}
答案 0 :(得分:0)
您可以使用PubSubManager
来发现节点树。
使用
discoverNodes
getAffiliations()
http://download.igniterealtime.org/smack/docs/latest/javadoc/