01: package pygmy.core;
02:
03: import java.io.IOException;
04:
05: /**
06: * <p>
07: * An Endpoint is reponsible for recieving HTTP requests (from sockets, files, etc),
08: * posting the requests to the Server, and sending the HttpResponse back. They are
09: * also in control of threading and honoring keepAlives. All implementing classes
10: * must provide a no-arg constructor so that the Server can instantiate them.
11: * </p>
12: */
13: public interface EndPoint {
14:
15: public void initialize(String name, Server server)
16: throws IOException;
17:
18: public String getName();
19:
20: public void start();
21:
22: public void shutdown(Server server);
23: }
|