1/** 2 * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); 3 * you may not use this file except in compliance with the License. 4 * You may obtain a copy of the License at 5 * 6 * http://www.apache.org/licenses/LICENSE-2.0 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, 10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 * See the License for the specific language governing permissions and 12 * limitations under the License. 13 */ 14package org.jivesoftware.smack; 15 16/** 17 * The AbstractConnectionListener class provides an empty implementation for all 18 * methods defined by the {@link ConnectionListener} interface. This is a 19 * convenience class which should be used in case you do not need to implement 20 * all methods. 21 * 22 * @author Henning Staib 23 */ 24public class AbstractConnectionListener implements ConnectionListener { 25 26 public void connectionClosed() { 27 // do nothing 28 } 29 30 public void connectionClosedOnError(Exception e) { 31 // do nothing 32 } 33 34 public void reconnectingIn(int seconds) { 35 // do nothing 36 } 37 38 public void reconnectionFailed(Exception e) { 39 // do nothing 40 } 41 42 public void reconnectionSuccessful() { 43 // do nothing 44 } 45 46} 47