1 /* 2 * (C)opyright 2010, Nikolaos Georgosopoulos 3 * 4 * This file is part of URLChecker. 5 6 URLChecker is free software: you can redistribute it and/or modify 7 it under the terms of the Lesser General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 URLChecker is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the Lesser General Public License 17 along with URLChecker. If not, see <http://www.gnu.org/licenses/>. 18 19 */ 20 package net.sf.urlchecker.exception.handling; 21 22 import java.io.IOException; 23 import java.io.Serializable; 24 25 import org.apache.commons.httpclient.HttpMethod; 26 27 /** 28 * The Class AlwaysFalse used as an exception handler that will always stop the 29 * retries. 30 * <p> 31 * <b> $Id: AlwaysFalse.java 179 2010-12-12 18:40:24Z georgosn $</b> 32 * </p> 33 * 34 * @author $LastChangedBy: georgosn $ 35 * @version $LastChangedRevision: 179 $ 36 */ 37 public class AlwaysFalse implements ExceptionHandler<HttpMethod>, Serializable { 38 39 /** The Constant serialVersionUID. */ 40 private static final long serialVersionUID = 1L; 41 42 /* 43 * (non-Javadoc) 44 * 45 * @see 46 * net.sf.urlchecker.exception.handling.ExceptionHandler#hanlde(org.apache 47 * .commons.httpclient.HttpMethod, java.io.IOException, int) 48 */ 49 /** {@inheritDoc} */ 50 public boolean handle(final HttpMethod method, final IOException exception, 51 final int retryCount) { 52 return false; 53 } 54 55 }