function handleAllRequests(oXhr) {
		var aResponse;

		// Log the request
		Log.info(
			"Mockserver: Received " + oXhr.method + " request to URL " + oXhr.url,
			(oXhr.requestBody ? "Request body is:\n" + oXhr.requestBody : "No request body.")
			+ "\n",
			sLogComponent
		);

		if (oXhr.method === "POST" && /\$batch/.test(oXhr.url)) {
			aResponse = handleBatchRequest(oXhr);
		} else {
			aResponse = handleDirectRequest(oXhr);
		}

		oXhr.respond(aResponse[0], aResponse[1], aResponse[2]);

		// Log the response
		Log.info(
			"Mockserver: Sent response with return code " + aResponse[0],
			("Response headers: " + JSON.stringify(aResponse[1]) + "\n\nResponse body:\n"
				+ aResponse[2]) + "\n",
			sLogComponent
		);
	}
Handles any type of intercepted request and sends a fake response.
Logs the request and response to the console.
Manages batch requests.
@param {Object} oXhr - the Sinon fake XMLHttpRequest