Package tigase.xml

Examples of tigase.xml.Element.clone()


        roster_util.setBuddySubscription(session, SubscriptionType.both, buddy);
        Element pres = (Element)session.getSessionData(Presence.PRESENCE_KEY);
        if (pres == null) {
          pres = new Element("presence");
        } else {
          pres = pres.clone();
        }
        pres.setAttribute("to", buddy);
        pres.setAttribute("from", session.getJID());
        results.offer(new Packet(pres));
      }
View Full Code Here


        Packet pack_update = new Packet(pres_update);
        pack_update.setTo(conn.getConnectionId());
        results.offer(pack_update);
        Element presence_el = (Element)conn.getSessionData(PRESENCE_KEY);
        if (presence_el != null) {
          pres_update = presence_el.clone();
          pres_update.setAttribute("to", session.getJID());
          pres_update.setAttribute("from", conn.getJID());
          pack_update = new Packet(pres_update);
          pack_update.setTo(session.getConnectionId());
          results.offer(pack_update);
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.