Examples of IQCallback


Examples of com.calclab.emite.core.IQCallback

    if (Strings.isNullOrEmpty(resource))
      iq.addExtension("bind", XmppNamespaces.BIND);
    else
      iq.addExtension("bind", XmppNamespaces.BIND).setChildText("resource", resource);

    iqManager.sendIQRequest("bind-resource", iq, new IQCallback() {
      @Override
      public void onIQSuccess(final IQ iq) {
        setStatus(SessionStatus.binded);
        requestSession(XmppURI.uri(iq.getExtension("bind", XmppNamespaces.BIND).getChildText("jid")));
      }
View Full Code Here

Examples of com.calclab.emite.core.IQCallback

    final IQ iq = new IQ(IQ.Type.set);
    iq.setFrom(uri);
    iq.setTo(uri.getHostURI());
    iq.addExtension("session", XmppNamespaces.SESSION);

    iqManager.sendIQRequest("session-request", iq, new IQCallback() {
      @Override
      public void onIQSuccess(final IQ iq) {
        userUri = iq.getTo();
        setStatus(SessionStatus.loggedIn);
      }
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.