[freenet-cvs] r16231 - trunk/apps/Echo/src/plugins/echo

nextgens at freenetproject.org nextgens at freenetproject.org
Mon Dec 3 18:24:19 UTC 2007


Author: nextgens
Date: 2007-12-03 18:24:18 +0000 (Mon, 03 Dec 2007)
New Revision: 16231

Modified:
   trunk/apps/Echo/src/plugins/echo/Echo.java
Log:
Echo: code cleanup, return null for unhandled put requests

Modified: trunk/apps/Echo/src/plugins/echo/Echo.java
===================================================================
--- trunk/apps/Echo/src/plugins/echo/Echo.java	2007-12-03 18:24:11 UTC (rev 16230)
+++ trunk/apps/Echo/src/plugins/echo/Echo.java	2007-12-03 18:24:18 UTC (rev 16231)
@@ -36,11 +36,6 @@
 	public static final int PROJECT_ID_LENGTH = 3;
 	public static final int NODE_ID_LENGTH = 4;
 	
-	private static final int MAX_TITLE_LENGTH = 200;
-	private static final int MAX_BODY_LENGTH = 100000;
-	private static final int MAX_OBJECT_LENGTH = 8;
-	private static final int MAX_CATEGORY_NAME_LENGTH = 100;
-	
 	protected PluginRespirator respirator;
 	private Builder parser;
 	private XSLTransform transform;
@@ -50,12 +45,7 @@
 	private Project project;
 	private NodesManager nodesManager;
 	private BlockManager blockManager;
-	
-	public Echo()
-	{
-
-	}
-	
+		
 	public void runPlugin(PluginRespirator p) {
 		
 		try {
@@ -155,7 +145,7 @@
 	}
 	
 	public String handleHTTPPut(HTTPRequest request) throws PluginHTTPException {
-		return "Put";
+		return null;
 	}
 	
 	public String handleHTTPPost(HTTPRequest request) throws PluginHTTPException {	




More information about the cvs mailing list