| java.lang.Object sunlabs.brazil.server.Connection
Connection | class Connection implements Runnable(Code) | | Internal "helper" class to manage http connections.
Create a thread that lives for the duration of the client socket and handles
multiple HTTP requests. Packages each HTTP request from the socket into
an HttpRequest object and passes it to the respond method of
the server's main HttpHandler. If an error occurs while handling a
request, the socket is closed and this thread ends.
author: Colin Stevens version: 1.14, 05/15/00 |
Method Summary | |
public void | run() Loop reading HTTP requests from the socket until there is an error,
the client requests that the socket be closed, or the client exceeds
the maximum number of requests allowed on a single socket. |
server | Server server(Code) | | The Server that created this handler.
|
Connection | Connection(Server server, Socket sock)(Code) | | Constructs a new Connection and starts it running.
|
run | public void run()(Code) | | Loop reading HTTP requests from the socket until there is an error,
the client requests that the socket be closed, or the client exceeds
the maximum number of requests allowed on a single socket.
|
|
|