/** This function will process the HTTP request
If GET, will try to find the file in the cache.
If the file isn't in the hashmap it will add it to the cache.
If the file doesn't exist, will send the 404 error
the default response is to send the 400 error
*/
public void processRequest(Socket client) throws IOException
{
//GET command
if(requestHeader.getMethod() == "GET" || requestHeader.getMethod() == "get")
{
//check if the path is asking for the default
if(requestHeader.getPath() == "/")
{
//check cache
String defaultDoc = TannerWebServer.configurator.getDefaultDocument();
if(cache.containsKey(defaultDoc))
{
requestedFile = cache.get(defaultDoc);
}