(no commit message)
[utils] / crawler / basic / src / org / wamblee / crawler / impl / ConfigurationParser.java
index e9dc4013b5c3025817e5c6daaba1fe5537733fba..b45053a2ab953c32cdec4a4d954220f86e0e1974 100644 (file)
@@ -59,14 +59,13 @@ public class ConfigurationParser {
 
     private static final int MAX_TRIES = 3;
 
-    private static final int MAX_DELAY = 5000;
+    private static final int MAX_DELAY = 100;
 
     private PrintStream _os;
     
     /**
      * 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