Author: cyberdo
Date: 2006-02-22 22:39:08 +0000 (Wed, 22 Feb 2006)
New Revision: 8117

Modified:
   trunk/plugins/TestGallery/TestGallery.java
Log:
Edited plugin to work with Fred v.470


Modified: trunk/plugins/TestGallery/TestGallery.java
===================================================================
--- trunk/plugins/TestGallery/TestGallery.java  2006-02-22 22:05:29 UTC (rev 
8116)
+++ trunk/plugins/TestGallery/TestGallery.java  2006-02-22 22:39:08 UTC (rev 
8117)
@@ -11,7 +11,7 @@
 import freenet.client.HighLevelSimpleClient;
 import freenet.keys.FreenetURI;

-public class TestGallery implements FredPlugin {
+public class TestGallery implements FredPlugin, FredPluginHTTP {
        boolean goon = true;
        Random rnd = new Random();
        PluginRespirator pr;
@@ -27,8 +27,13 @@
                        return "";
                }
        }
-       
-       public String handleHTTPGet(String path) {
+       public String handleHTTPPut(String path) throws PluginHTTPException {
+               throw new PluginHTTPException();
+       }
+       public String handleHTTPPost(String path) throws PluginHTTPException {
+               throw new PluginHTTPException();
+       }
+       public String handleHTTPGet(String path) throws PluginHTTPException {
                StringBuffer out = new StringBuffer();
                String[] pathelements = path.split("\\?");
                String uri = pathelements[0];
@@ -139,11 +144,6 @@
                        }
                }
        }
-       
-       public boolean handles(int thing) {
-               return ((thing == FredPlugin.handleFproxy) ||
-                               (thing == FredPlugin.handleFproxy) ||
-                               (thing == FredPlugin.handleFproxy));
-       }

+
 }


Reply via email to