X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fbasic%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2Fimpl%2FConfigurationParser.java;h=b45053a2ab953c32cdec4a4d954220f86e0e1974;hb=8bdf7301b21a7824933fac2b75caf410b7dd5923;hp=6795bf1c6c1fa1830d14e2902147f5d3816d31b4;hpb=45954ad938187b0c16d18c763ccfd43a349cb862;p=utils diff --git a/crawler/basic/src/org/wamblee/crawler/impl/ConfigurationParser.java b/crawler/basic/src/org/wamblee/crawler/impl/ConfigurationParser.java index 6795bf1c..b45053a2 100644 --- a/crawler/basic/src/org/wamblee/crawler/impl/ConfigurationParser.java +++ b/crawler/basic/src/org/wamblee/crawler/impl/ConfigurationParser.java @@ -65,8 +65,7 @@ public class ConfigurationParser { /** * Constructs the configuration parser. - * @param aOs The stream for logging requests. - * TODO plain java logging should be used instead of this awkward mechanism. + * @param aOs The stream for logging requests */ public ConfigurationParser(PrintStream aOs) { _os = aOs; @@ -162,10 +161,10 @@ public class ConfigurationParser { PageRequest request; if (METHOD_POST.equals(method)) { request = new PostPageRequest(MAX_TRIES, MAX_DELAY, paramsArray, - xslt, _os); + xslt); } else if (METHOD_GET.equals(method) || method == null) { request = new GetPageRequest(MAX_TRIES, MAX_DELAY, paramsArray, - xslt, _os); + xslt); } else { throw new RuntimeException("Unknown request method '" + method + "'. Only " + METHOD_GET + " and " + METHOD_POST