mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
first Try with Eclipse / cleaned sources
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1157 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
d35fb38c2b
commit
548f0c6aff
|
@ -48,12 +48,10 @@ import java.io.OutputStream;
|
|||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import de.anomic.data.wikiCode;
|
||||
|
@ -75,11 +73,6 @@ import de.anomic.yacy.yacyNewsPool;
|
|||
|
||||
public class IndexCreate_p {
|
||||
|
||||
private static SimpleDateFormat dayFormatter = new SimpleDateFormat("yyyy/MM/dd", Locale.US);
|
||||
private static String daydate(Date date) {
|
||||
if (date == null) return ""; else return dayFormatter.format(date);
|
||||
}
|
||||
|
||||
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
|
||||
// return variable that accumulates replacements
|
||||
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
|
||||
|
@ -91,8 +84,6 @@ public class IndexCreate_p {
|
|||
|
||||
switchboard.cleanProfiles();
|
||||
|
||||
int i;
|
||||
|
||||
if (post != null) {
|
||||
if (post.containsKey("crawlingstart")) {
|
||||
// init crawl
|
||||
|
@ -211,7 +202,7 @@ public class IndexCreate_p {
|
|||
serverFileUtils.write(fileContent,os);
|
||||
os.close();
|
||||
|
||||
String headline = scraper.getHeadline();
|
||||
//String headline = scraper.getHeadline();
|
||||
HashMap hyperlinks = (HashMap) scraper.getAnchors();
|
||||
|
||||
// creating a crawler profile
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
//if the shell's current path is HTROOT
|
||||
|
||||
import de.anomic.http.httpHeader;
|
||||
import de.anomic.plasma.plasmaSwitchboard;
|
||||
import de.anomic.server.serverObjects;
|
||||
import de.anomic.server.serverSwitch;
|
||||
|
||||
|
@ -61,7 +60,6 @@ public class autoconfig {
|
|||
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
|
||||
|
||||
serverObjects prop = new serverObjects();
|
||||
plasmaSwitchboard sb = (plasmaSwitchboard)env;
|
||||
|
||||
// getting the http host header
|
||||
String hostSocket = (String) header.get(httpHeader.CONNECTION_PROP_HOST);
|
||||
|
|
Loading…
Reference in New Issue
Block a user