01: package pygmy.core;
02:
03: import java.io.IOException;
04:
05: /**
06: * <p>
07: * Objects that implement this interface handle the HttpRequests. It processes
08: * the request by returning true for the handler() method.
09: * </p>
10: */
11: public interface Handler {
12:
13: public boolean initialize(String handlerName, Server server);
14:
15: public String getName();
16:
17: public boolean handle(Request request, Response response)
18: throws IOException;
19:
20: public boolean shutdown(Server server);
21: }
|