if (uri.indexOf("/dyn/stopserver") != -1) {
sendResponseToBrowser(new NoCacheHttpResponse(200, "OK", "Killing Server"));
System.exit(1);
}
String fileName = fileNamefromURI(uri);
sendResponseToBrowser(new HttpFileResponse(fileName, null, false, false));
} catch (FileIsDirectoryException dirEx) {
try {
if ("/".equals(uri)) uri = "/demo";
if (uri.endsWith("/")) uri = uri.substring(0, uri.length() - 1);
sendResponseToBrowser(new NoCacheHttpResponse(200, "OK", "<script>location.href='"+uri+"/index.htm'</script>"));