nl.tue.id.tim
Class HttpServer.HttpServerConnection

java.lang.Object
  extended bynl.tue.id.tim.HttpServer.HttpServerConnection
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
HttpServer

class HttpServer.HttpServerConnection
extends java.lang.Object
implements java.lang.Runnable

Http server connection.

Description: this class represents the connection betwwen a particular http client to the server. the connection runs in its own thread, serve the comming http requests.

Copyright: Copyright (c) 2005 Jun Hu

Company: ID, TU/e

Version:
1.0
Author:
Jun Hu

Field Summary
(package private)  java.net.Socket client
           
(package private)  java.lang.String contentLengthLine
           
(package private)  java.lang.String contentTypeLine
           
(package private) static java.lang.String CRLF
           
(package private)  java.lang.String entityBody
           
(package private)  java.lang.String serverLine
           
(package private)  java.lang.String statusLine
           
 
Constructor Summary
(package private) HttpServer.HttpServerConnection(java.net.Socket client)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

static final java.lang.String CRLF
See Also:
Constant Field Values

serverLine

java.lang.String serverLine

entityBody

java.lang.String entityBody

statusLine

java.lang.String statusLine

contentLengthLine

java.lang.String contentLengthLine

contentTypeLine

java.lang.String contentTypeLine

client

java.net.Socket client
Constructor Detail

HttpServer.HttpServerConnection

HttpServer.HttpServerConnection(java.net.Socket client)
                          throws java.net.SocketException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable