rem: DWREngine._constructRequest = function(batch) { 
add: dwr.engine._constructRequest = function(batch) { 
context: DWREngine._constructRequest = function(batch) {  // A quick string to help people that use web log analysers  var request = { url:batch.path + batch.mode, body:null };  if (batch.isPoll == true) {    request.url += "ReverseAjax.dwr";  }  else if (batch.map.callCount == 1) {    request.url += batch.map["c0-scriptName"] + "." + batch.map["c0-methodName"] + ".dwr";  }  else {    request.url += "Multiple." + batch.map.callCount + ".dwr";  }  // Play nice with url re-writing  var sessionMatch = location.href.match(/jsessionid=(\w+)/);  if (sessionMatch != null) {    request.url += ";jsessionid=" + sessionMatch[1];  }  var prop;  if (batch.httpMethod == "GET") {    // Some browsers (Opera/Safari2) seem to fail to convert the callCount value    // to a string in the loop below so we do it manually here.    batch.map.callCount = "" + batch.map.callCount;    request.url += "?";    for (prop in batch.map) {      if (typeof batch.map[prop] != "function") {        request.url += encodeURIComponent(prop) + "=" + encodeURIComponent(batch.map[prop]) + "&";      }    }    request.url = request.url.substring(0, request.url.length - 1);  }  else {    // PERFORMANCE: for iframe mode this is thrown away.    request.body = "";    for (prop in batch.map) {      if (typeof batch.map[prop] != "function") {        request.body += prop + "=" + batch.map[prop] + DWREngine._postSeperator;      }    }    request.body = DWREngine._contentRewriteHandler(request.body);  }  request.url = DWREngine._urlRewriteHandler(request.url);  return request;};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js