Examples of ConnectionConfiguration


Examples of org.jivesoftware.smack.ConnectionConfiguration

        block = true;
        TestRunner.run(XmppTest.class);
    }

    public void testConnect() throws Exception {
        ConnectionConfiguration config = new
            ConnectionConfiguration("localhost", 61222);
        // config.setDebuggerEnabled(true);

        try {
            // SmackConfiguration.setPacketReplyTimeout(1000);
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

    }



    public void testChat() throws Exception {
        ConnectionConfiguration config = new ConnectionConfiguration("localhost", 61222);
        //config.setDebuggerEnabled(true);

        XMPPConnection consumerCon = new XMPPConnection(config);
        consumerCon.connect();
        consumerCon.login("consumer", "consumer");
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration



    public void testMultiUserChat() throws Exception {
        System.out.println("\n\n\n\n\n\n");
        ConnectionConfiguration config = new ConnectionConfiguration("localhost", 61222);
        //config.setDebuggerEnabled(true);
        //
        XMPPConnection consumerCon = new XMPPConnection(config);
        consumerCon.connect();
        consumerCon.login("consumer", "consumer");
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

        });
    }

    public void testTwoConnections() throws Exception {
        System.out.println("\n\n\n\n\n\n");
        ConnectionConfiguration config = new ConnectionConfiguration("localhost", 61222);
        //config.setDebuggerEnabled(true);

        //create the consumer first...
        XMPPConnection consumerCon = new XMPPConnection(config);
        consumerCon.connect();
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

            return connection;
        }

        if (port > 0) {
            if (getServiceName() == null) {
                connection = new XMPPConnection(new ConnectionConfiguration(host, port));
            } else {
                connection = new XMPPConnection(new ConnectionConfiguration(host, port, serviceName));
            }
        } else {
            connection = new XMPPConnection(host);
        }
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

    public XMPPConnection createConnection() throws XMPPException {
        XMPPConnection connection;

        if (port > 0) {
            if (getServiceName() == null) {
                connection = new XMPPConnection(new ConnectionConfiguration(host, port));
            } else {
                connection = new XMPPConnection(new ConnectionConfiguration(host, port, getServiceName()));
            }
        } else {
            connection = new XMPPConnection(host);
        }
View Full Code Here

Examples of org.jivesoftware.smack.ConnectionConfiguration

          packetFilter = new FromContainsFilter(serverCredentials.getServerUrl());         
        }
      }   
     
    }else if(XMPPConstants.XMPP_SERVER_TYPE_GOOGLETALK.equals(serverCredentials.getServerType())){
      ConnectionConfiguration connectionConfiguration =
        new ConnectionConfiguration(XMPPConstants.GOOGLETALK_URL
          ,XMPPConstants.GOOGLETALK_PORT
          ,XMPPConstants.GOOGLETALK_SERVICE_NAME);       
      xmppConnection = new XMPPConnection(connectionConfiguration);
      try {
        xmppConnection.connect();
View Full Code Here

Examples of org.palo.api.ConnectionConfiguration

    return ret;
  }

  private Connection getConnection()
  {
    ConnectionConfiguration config = ConnectionFactory.getInstance().getConfiguration("localhost",
        "7777", "admin", "admin");
    config.setLoadOnDemand(true);
    return ConnectionFactory.getInstance().newConnection(config);
  }
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.