From 99861ff2c132b421a7e41adea6edb148376a5cc4 Mon Sep 17 00:00:00 2001 From: theli Date: Mon, 9 Jan 2006 09:34:51 +0000 Subject: [PATCH] *) 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 --- source/de/anomic/urlRedirector/urlRedirectord.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/de/anomic/urlRedirector/urlRedirectord.java b/source/de/anomic/urlRedirector/urlRedirectord.java index e974f4d74..32cde2fa7 100644 --- a/source/de/anomic/urlRedirector/urlRedirectord.java +++ b/source/de/anomic/urlRedirector/urlRedirectord.java @@ -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;