Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.Connection.disconnect()


            AccountManager manager = connection.getAccountManager();
            manager.createAccount(username, password);
            monitor.worked(1);

            connection.disconnect();
        } catch (XMPPException e) {
            String message = e.getMessage();
            XMPPError error = e.getXMPPError();
            if (error != null) {
                message = error.getMessage();
View Full Code Here


    boolean test = false;
    Connection conn = new XMPPConnection(server);
    try {
      conn.connect();
      conn.login(uid, pwd);
      conn.disconnect();
      test = true;
    } catch (XMPPException e) {
      logger.l2("XMPP connection test failed", e);
    }
    return test;
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.