Package org.jivesoftware.smackx.pubsub

Examples of org.jivesoftware.smackx.pubsub.Node.subscribe()


                String nodeName = (String)dtm.getValueAt(event.getFirstRow(), 0);
   
                Node node = pubsubMgr.getNode(nodeName);
   
                if(sub.booleanValue()) { // contains the new value (soll)
                    node.subscribe(jid);
                    System.out.println(jid + " subscribed to " + node.getId());
                } else {
                    node.unsubscribe(jid);
                    System.out.println(jid + " unsubscribed from " + node.getId());
                }
View Full Code Here


                String nodeName = (String) dtm.getValueAt(event.getFirstRow(), 0);

                Node node = pubsubMgr.getNode(nodeName);

                if (sub.booleanValue()) { // contains the new value (soll)
                    node.subscribe(jid);
                    System.out.println(jid + " subscribed to " + node.getId());
                } else {
                    node.unsubscribe(jid);
                    System.out.println(jid + " unsubscribed from " + node.getId());
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.