Package org.jivesoftware.smackx.packet

Examples of org.jivesoftware.smackx.packet.VCard.load()


        origVCard.save(getConnection(0));

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
        } catch (XMPPException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
View Full Code Here


        assertEquals("Should load own VCard successfully", origVCard, loaded);

        loaded = new VCard();
        try {
            loaded.load(getConnection(1), getBareJID(0));
        } catch (XMPPException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
View Full Code Here

        card.setAvatar(getAvatarBinary());
        card.save(getConnection(0));

        VCard loaded = new VCard();
        try {
            loaded.load(getConnection(0));
        }
        catch (XMPPException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
View Full Code Here

        byte[] loadedAvatar = loaded.getAvatar();
        assertEquals("Should load own Avatar successfully", initialAvatar, loadedAvatar);

        loaded = new VCard();
        try {
            loaded.load(getConnection(1), getBareJID(0));
        }
        catch (XMPPException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
View Full Code Here

      final String from = xmppPresence.getFrom();
      result = getFromCache(from);
      if (result == null && from != null) {
        result = new VCard();
        try {
          result.load(container.getXMPPConnection(), from);
          addToCache(from, result);
        } catch (final XMPPException e) {
          traceStack("vcard loading exception", e);
        }
      }
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.