mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
*) 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:
parent
a125fee9ce
commit
99861ff2c1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user