Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.ConnectionCreationListener


        /*
         * add Saros as XMPP feature once {@link Connection} is connected to the
         * XMPP server
         */
        Connection
            .addConnectionCreationListener(new ConnectionCreationListener() {
                public void connectionCreated(Connection connection2) {
                    if (connection != connection2) {
                        // Ignore the connections created in createAccount.
                        return;
                    }
View Full Code Here


        providerManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());

        // Enable the Jingle support on every established connection
        // The ServiceDiscoveryManager class should have been already
        // initialized
        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
            public void connectionCreated(Connection connection) {
                JingleManager.setServiceEnabled(connection, true);
            }
        });
    }
View Full Code Here

        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addIQProvider( JingleIQ.ELEMENT_NAME,
                JingleIQ.NAMESPACE,
                new JingleIQProvider());

        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
            public synchronized void connectionCreated(Connection connection) {
              if( ! ServiceDiscoveryManager.getInstanceFor(connection).includesFeature(JingleIQ.NAMESPACE) )
                ServiceDiscoveryManager.getInstanceFor(connection).addFeature(JingleIQ.NAMESPACE);
            }
        });
View Full Code Here

        providerManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());

        // Enable the Jingle support on every established connection
        // The ServiceDiscoveryManager class should have been already
        // initialized
        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
            public void connectionCreated(Connection connection) {
                JingleManager.setServiceEnabled(connection, true);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.ConnectionCreationListener

Copyright © 2018 www.massapicom. 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.