Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.ConnectionConfiguration


      // this is a reconnect.
      disconnect();
    }
    LOG.warning("Reconnect called:" + toString());
    // configure and connect
    final ConnectionConfiguration connConfig = new ConnectionConfiguration(
        host, port, serviceName);
   
    connConfig.setSASLAuthenticationEnabled(true);
    connConfig.setReconnectionAllowed(true);
    connConfig.setCompressionEnabled(true);
    connConfig.setRosterLoadedAtLogin(false);
   
    conn = new XMPPConnection(connConfig);
    try {
      conn.connect();
     
View Full Code Here


    this.serviceName = serviceName;
    this.password = password;
   
    try {
      // configure and connect
      final ConnectionConfiguration connConfig = new ConnectionConfiguration(
          host, port, serviceName);
     
      connConfig.setSASLAuthenticationEnabled(true);
      connConfig.setReconnectionAllowed(true);
      connConfig.setCompressionEnabled(true);
      connConfig.setRosterLoadedAtLogin(false);
      conn = new XMPPConnection(connConfig);
      conn.connect();
     
      // login
      if (resource == null) {
View Full Code Here

    this.username = username;
    this.resource = resource;
   
    try {
      // configure and connect
      ConnectionConfiguration connConfig =
          new ConnectionConfiguration(host, port, serviceName);
      conn = new XMPPConnection(connConfig);
      conn.connect();

      // login
      if (resource == null) {
View Full Code Here

    this.username = username;
    this.resource = resource;
   
    try {
      // configure and connect
      ConnectionConfiguration connConfig = new ConnectionConfiguration(
          host, port, serviceName);
     
      connConfig.setSASLAuthenticationEnabled(true);
      connConfig.setReconnectionAllowed(true);
      connConfig.setCompressionEnabled(true);
      connConfig.setRosterLoadedAtLogin(false);
      conn = new XMPPConnection(connConfig);
      conn.connect();
     
      // login
      if (resource == null) {
View Full Code Here

    private class LoginTask extends Task<Void> {
        public Void execute() throws TaskExecutionException {
            try {
                String domain = domainTextInput.getText();

                ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration(domain);
                xmppConnection = new XMPPConnection(connectionConfiguration);

                String username = usernameTextInput.getText();
                String password = passwordTextInput.getText();
                xmppConnection.connect();
View Full Code Here

      throws XMPPException {
    if (debugEnable) {
      Connection.DEBUG_ENABLED = true;
    } else
      Connection.DEBUG_ENABLED = false;
    ConnectionConfiguration connConfig = new ConnectionConfiguration(host);
    connection = new XMPPConnection(connConfig);
    connection.connect();
    // 服务器登录成功
    if (connection != null) {
      if (username == "") {
View Full Code Here

      throws XMPPException {
    if (debugEnable) {
      Connection.DEBUG_ENABLED = true;
    } else
      Connection.DEBUG_ENABLED = false;
    ConnectionConfiguration connConfig = new ConnectionConfiguration(host);
    connection = new XMPPConnection(connConfig);
    connection.connect();
    // 服务器登录成功
    if (connection != null) {
      if (username == "") {
View Full Code Here

      public void run() {
        try {
          log( RECEIVER, "connecting to " + host );
         
          // connect to host (don't log in yet)
          ConnectionConfiguration config = new ConnectionConfiguration(host);
          XMPPConnection connection = new XMPPConnection( config );
          connection.connect();
          // setup service discovery and entity capabilities.
          // this ensures that other software, such as Jitsi, knows that we support
          // ice and so on
View Full Code Here

      public void run() {
        try {
          log( resource, "connecting to " + host );
         
          // connect to host (don't log in yet)
          ConnectionConfiguration config = new ConnectionConfiguration(host);
          connection = new XMPPConnection( config );
          connection.connect();
          // setup service discovery and entity capabilities.
          // this ensures that other software, such as Jitsi, knows that we support
          // ice and so on
View Full Code Here

      public void run() {
        try {
          log( resource, "connecting to " + host );
         
          // connect to host (don't log in yet)
          ConnectionConfiguration config = new ConnectionConfiguration(host);
          connection = new XMPPConnection( config );
          connection.connect();
          // setup service discovery and entity capabilities.
          // this ensures that other software, such as Jitsi, knows that we support
          // ice and so on
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.ConnectionConfiguration

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.