getCachePath: no logging

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1033 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
borg-0300 19 years ago
parent 1fbd72f9e0
commit 72cde1d894

@ -427,7 +427,7 @@ public final class plasmaHTCache {
* @return new File
*/
public File getCachePath(URL url) {
this.log.logFinest("plasmaHTCache: getCachePath: IN=" + url.toString());
// this.log.logFinest("plasmaHTCache: getCachePath: IN=" + url.toString());
String remotePath = url.getFile();
if (remotePath.endsWith("/")) { remotePath = remotePath + "ndx"; }
if (!remotePath.startsWith("/")) { remotePath = "/" + remotePath; }
@ -438,14 +438,19 @@ public final class plasmaHTCache {
else if (url.getProtocol().equalsIgnoreCase("https")) port = 443;
else if (url.getProtocol().equalsIgnoreCase("ftp")) port = 21;
}
File path;
if (port == 80) {
return new File(this.cachePath, url.getHost() + remotePath);
} else {
return new File(this.cachePath, url.getHost() + "!" + port + remotePath);
}
/* File path;
if (port == 80) {
path = new File(this.cachePath, url.getHost() + remotePath);
} else {
path = new File(this.cachePath, url.getHost() + "!" + port + remotePath);
path = new File(this.cachePath, url.getHost() + "!" + port + remotePath);
}
this.log.logFinest("plasmaHTCache: getCachePath: OUT=" + path.toString());
return path;
return path;*/
}
/**

Loading…
Cancel
Save