pygmy.core
Interface EndPoint

All Known Implementing Classes:
NntpEndPoint, ServerSocketEndPoint, SingleThreadedHttpEndPoint, SSLServerSocketEndPoint

public interface EndPoint

An Endpoint is reponsible for recieving HTTP requests (from sockets, files, etc), posting the requests to the Server, and sending the HttpResponse back. They are also in control of threading and honoring keepAlives. All implementing classes must provide a no-arg constructor so that the Server can instantiate them.


Method Summary
 java.lang.String getName()
           
 void initialize(java.lang.String name, Server server)
           
 void shutdown(Server server)
           
 void start()
           
 

Method Detail

initialize

void initialize(java.lang.String name,
                Server server)
                throws java.io.IOException
Throws:
java.io.IOException

getName

java.lang.String getName()

start

void start()

shutdown

void shutdown(Server server)