com.bitmechanic.maxq
Class RequestHandler

java.lang.Object
  extended by com.bitmechanic.maxq.RequestHandler
All Implemented Interfaces:
java.lang.Runnable

public class RequestHandler
extends java.lang.Object
implements java.lang.Runnable

One of these is created as a thread to handle each request and response pair for ProxyServer.


Method Summary
 void run()
          does the following get header info from client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()
does the following
  1. get header info from client.
  2. strips all but relative address info from header
  3. sends that information to the rewritten header, along with all the rest of the information to the server.

  4. gets the server response
  5. passes that information back to the client.
  6. the server should close its connection. once that happens, the proxy closes its connection.

Specified by:
run in interface java.lang.Runnable