*) 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
pull/1/head
theli 20 years ago
parent 652a19cf13
commit 02d43a7bd4

@ -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;
}

Loading…
Cancel
Save