protected void parseRequestLine(String request) throws Exception {
		if (RequestThread.debug) {
			System.out.println();
			System.out.println("REQUEST <".concat(request).concat(
					Character.toString('>')));
		}

		this.version = HTTPVersion.convert(request);
		this.verb = HTTPVerb.convert(request);

		int firstSpace = request.indexOf(' ');
		int lastSpace = request.lastIndexOf(' ');

		if ((firstSpace == -1) || (lastSpace == -1)
				|| (firstSpace == lastSpace)) {
			throw new Exception("No path in request line");
		}

		this.path = request.substring(firstSpace + 1, lastSpace);

		// FIXME: currently we just accept any host and treat it like it is ours
		if (this.path.startsWith("http://")) {
			URL url = new URL(this.path);
			this.path = url.getFile();
		}

		if (this.path.length() == 0) {
			throw new Exception("Empty path");
		}
	}