*) Crawling depth can now be configured via command string in urlRedirector mode

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1295 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2006-01-09 09:34:51 +00:00
parent a125fee9ce
commit 99861ff2c1

View File

@ -136,6 +136,15 @@ public class urlRedirectord implements serverHandler {
outputWriter.print(transferIgnoreList);
outputWriter.print("\r\n");
outputWriter.flush();
} else if (line.startsWith("DEPTH")) {
int pos = line.indexOf(" ");
if (pos != -1) {
String newDepth = line.substring(pos).trim();
this.theLogger.logFine("Changing crawling depth to '" + newDepth);
profile.changeEntry("generalDepth",newDepth);
}
outputWriter.print("\r\n");
outputWriter.flush();
} else {
if (!authenticated) {
return Boolean.FALSE;