rabbit.webserver
Class Connection

java.lang.Object
  extended by rabbit.webserver.Connection

public class Connection
extends Object

A connection to a web client.

Author:
Robert Olofsson

Constructor Summary
Connection(SimpleWebServer sws, SocketChannel sc)
          Create a new Connection for the given web server and socket channel.
 
Method Summary
 void readRequest()
          Set up a http reader to listen for http request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection(SimpleWebServer sws,
                  SocketChannel sc)
Create a new Connection for the given web server and socket channel.

Method Detail

readRequest

public void readRequest()
                 throws IOException
Set up a http reader to listen for http request.

Throws:
IOException