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.communication.configurers;
21
22 import org.apache.commons.configuration.XMLConfiguration;
23
24 /**
25 * The Retries Configurer Class .
26 *
27 * <p>
28 * <b> $Id: RetriesConfigurer.java 182 2010-12-13 22:51:53Z georgosn $</b>
29 * </p>
30 *
31 * @author $LastChangedBy: georgosn $
32 * @version $LastChangedRevision: 182 $
33 */
34 public class RetriesConfigurer implements Configurer<Integer> {
35
36 /*
37 * (non-Javadoc)
38 *
39 * @see
40 * net.sf.urlchecker.communication.configurers.Configurer#configureWith(org
41 * .apache.commons.configuration.XMLConfiguration, java.lang.Object)
42 */
43 /** {@inheritDoc} */
44 public Integer configureWith(XMLConfiguration config) {
45 return config.getInteger("errorretries", 3);
46
47 }
48
49 }