public void run()
	{
		try {
			HTTPResponse response = null;
			try
			{
				HTTPRequest req = HTTPRequest.fromSocket(client);
				response = HTTPRequestHandler.getInstance().handle(req);
			}
			catch ( Exception e )
			{
				e.printStackTrace();
				response = ErrorFactory.internalServerError("handle() threw exception");
			}
			response.send(client);
			client.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}