Author: orbiter
Date: 2008-01-19 02:07:52 +0100 (Sat, 19 Jan 2008)
New Revision: 4344
Added:
trunk/htroot/test.java
trunk/htroot/test.xml
Log:
added a test servlet (to be used to analyse the remote crawl xml bug)
Added: trunk/htroot/test.java
===================================================================
--- trunk/htroot/test.java 2008-01-19 00:40:19 UTC (rev 4343)
+++ trunk/htroot/test.java 2008-01-19 01:07:52 UTC (rev 4344)
@@ -0,0 +1,21 @@
+import de.anomic.http.httpHeader;
+import de.anomic.server.serverObjects;
+import de.anomic.server.serverSwitch;
+
+public class test {
+
+ // http://localhost:8080/test.xml?count=10
+
+ public static serverObjects respond(httpHeader header, serverObjects post,
serverSwitch env) {
+ serverObjects prop = new serverObjects();
+ int count = Math.min(1000, (post == null) ? 0 : post.getInt("count",
0));
+
+ for (int i = 0; i < count; i++) {
+ prop.put("item_" + i + "_text", Integer.toString(i));
+ }
+ prop.put("item", count);
+
+ return prop;
+ }
+
+}
Added: trunk/htroot/test.xml
===================================================================
--- trunk/htroot/test.xml 2008-01-19 00:40:19 UTC (rev 4343)
+++ trunk/htroot/test.xml 2008-01-19 01:07:52 UTC (rev 4344)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<root>
+
+#{item}#
+<item>
+<text>#[text]#</text>
+</item>
+#{/item}#
+</root>
_______________________________________________
YaCy-svn mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yacy-svn