public String getMimeType(String incUrl) {
        if (incUrl.endsWith(".html") || incUrl.endsWith(".htm")) {
            return "text/html";
        } else if (incUrl.endsWith(".txt") || incUrl.endsWith(".java")) {
            return "text/plain";
        } else if (incUrl.endsWith(".gif")) {
            return "image/gif";
        } else if (incUrl.endsWith(".class")) {
            return "application/octet-stream";
        } else if (incUrl.endsWith(".jpg") || incUrl.endsWith(".jpeg")) {
            return "image/jpeg";
        } else {
            return "text/plain";
        }
    }