package org.wamblee.crawler.impl;
import java.io.InputStream;
-import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
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.
*/
- public ConfigurationParser(PrintStream aOs) {
- _os = aOs;
+ public ConfigurationParser() {
+ // Empty
}
/**
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