From 02d43a7bd4db33ea089eeda202fc4156d62fda71 Mon Sep 17 00:00:00 2001 From: theli Date: Thu, 9 Jun 2005 10:54:03 +0000 Subject: [PATCH] *) adding additional methods that should be implemented by all serverHandler classes git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@256 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/serverHandler.java | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/server/serverHandler.java b/source/de/anomic/server/serverHandler.java index ebdc70320..d4e5de0b4 100644 --- a/source/de/anomic/server/serverHandler.java +++ b/source/de/anomic/server/serverHandler.java @@ -80,6 +80,8 @@ package de.anomic.server; +import java.io.IOException; + public interface serverHandler { @@ -109,8 +111,23 @@ public interface serverHandler { // but only the necessary one for a newly initialized instance public Object clone(); - // Instead of using clone this function can be used to reset an existing - // handler prototype so that it can e reused + /** + * Instead of using clone this function can be used to reset an existing + * handler prototype so that it can e reused + */ public void reset(); + /** + * Tthis function will be called by the {@link serverCore}.listen() function + * if the whole request line is empty and therefore no function of this + * serverHandlerClass can be called because of the missing command name + */ + public Boolean EMPTY(String arg) throws IOException; + + /** + * This function will be called by the {@link serverCore}.listen() function + * if no corresponding funktion of the serverHandler class can be + * found for the received command. + */ + public Boolean UNKNOWN(String requestLine) throws IOException; }