Package org.jivesoftware.smack

Examples of org.jivesoftware.smack.ConnectionListener


        log.error("Error occured while connecting to Googletalk server.",e1);
        throw new AxisFault("Error occured while connecting to Googletalk server.");
     
    }
   
    ConnectionListener connectionListener = null;
    connectionListener = new ConnectionListener(){
      public void connectionClosed() {
        log.debug("Connection closed normally");
      }
      public void connectionClosedOnError(
          Exception e1) {
View Full Code Here


        log.error("Error occured while connecting to Googletalk server.",e1);
        throw new AxisFault("Error occured while connecting to Googletalk server.");
     
    }
   
    ConnectionListener connectionListener = null;
    connectionListener = new ConnectionListener(){
      public void connectionClosed() {
        log.debug("Connection closed normally");
      }
      public void connectionClosedOnError(
          Exception e1) {
View Full Code Here

            }
        }, null);
    }

    private void init() {
        connection.addConnectionListener(new ConnectionListener() {

            @Override
            public void connectionClosed() {
                stopPingServerTask();
                handleDisconnect(connection);
View Full Code Here

     * @param connection
     *            The connection to set up
     */
    private void installConnectionListeners(final Connection connection) {
        if (connection != null) {
            connectionListener = new ConnectionListener() {
                public void connectionClosed() {
                    unregisterInstanceFor(connection);
                }

                public void connectionClosedOnError(java.lang.Exception e) {
View Full Code Here

                            packet.toXML());
                }
            }
        };

        connListener = new ConnectionListener() {
            public void connectionClosed() {
                System.out.println(
                        dateFormatter.format(new Date()) + " Connection closed (" +
                        connection.hashCode() +
                        ")");
View Full Code Here

            }
        };

        // Create a thread that will listen for any connection closed event
        connListener = new ConnectionListener() {
            public void connectionClosed() {
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        statusField.setValue("Closed");
                        EnhancedDebuggerWindow.connectionClosed(EnhancedDebugger.this);
View Full Code Here

            }
        }, null);
    }

    private void init() {
        connection.addConnectionListener(new ConnectionListener() {

            @Override
            public void connectionClosed() {
                stopPingServerTask();
                handleDisconnect(connection);
View Full Code Here

        byteStreamTransferManager = new Socks5TransferNegotiator(connection);
        inbandTransferManager = new IBBTransferNegotiator(connection);
    }

    private void configureConnection(final Connection connection) {
        connection.addConnectionListener(new ConnectionListener() {
            public void connectionClosed() {
                cleanup(connection);
            }

            public void connectionClosedOnError(Exception e) {
View Full Code Here

    private void init() {
        Connection connection = weakRefConnection.get();
        instances.put(connection, this);

        connection.addConnectionListener(new ConnectionListener() {
            public void connectionClosed() {
                // Unregister this instance since the connection has been closed
                presenceSend = false;
                instances.remove(weakRefConnection.get());
            }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smack.ConnectionListener

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.