You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/03/19 11:37:20 UTC

svn commit: r755904 [40/40] - in /camel/trunk/components/camel-web/src/main/webapp/js/dojox: ./ analytics/ analytics/logger/ analytics/plugins/ analytics/profiles/ atom/ atom/io/ atom/widget/ atom/widget/nls/ atom/widget/nls/cs/ atom/widget/nls/de/ ato...

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/proxy/xip_server.html
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/proxy/xip_server.html?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/proxy/xip_server.html (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/proxy/xip_server.html Thu Mar 19 10:37:00 2009
@@ -0,0 +1,382 @@
+<!--
+	/*
+		Copyright (c) 2004-2008, The Dojo Foundation
+		All Rights Reserved.
+	
+		Licensed under the Academic Free License version 2.1 or above OR the
+		modified BSD license. For more information on Dojo licensing, see:
+	
+			http://dojotoolkit.org/community/licensing.shtml
+	*/
+	Pieces taken from Dojo source to make this file stand-alone
+-->
+<html>
+<head>
+	<title></title>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
+	<script type="text/javascript" src="isAllowed.js"></script>
+	<!--
+	BY DEFAULT THIS FILE DOES NOT WORK SO THAT YOU DON'T ACCIDENTALLY EXPOSE
+	ALL OF YOUR XHR-ENABLED SERVICES ON YOUR SITE. 
+	
+	In order for this file to work, you need to uncomment the start and end script tags,
+	and you should define a function with the following signature:
+	
+	function isAllowedRequest(request){
+		return false;	
+	}
+	
+	Return true out of the function if you want to allow the cross-domain request.
+	
+	DON'T DEFINE THIS FUNCTION IN THIS FILE! Define it in a separate file called isAllowed.js
+	and include it in this page with a script tag that has a src attribute pointing to the file.
+	See the very first script tag in this file for an example. You do not have to place the
+	script file in the same directory as this file, just update the path above if you move it
+	somewhere else.
+	
+	Customize the isAllowedRequest function to restrict what types of requests are allowed
+	for this server. The request object has the following properties:
+	- requestHeaders: an object with the request headers that are to be added to
+	                  the XHR request.
+	- method: the HTTP method (GET, POST, etc...)
+	- uri: The URI for the request.
+	- data: The URL-encoded data for the request. For a GET request, this would
+	        be the querystring parameters. For a POST request, it wll be the
+	        body data.
+	        
+	See xip_client.html for more info on the xip fragment identifier protocol.	
+	-->
+	
+	<!-- Security protection: uncomment the script tag to enable. -->
+	<!-- script type="text/javascript" -->
+	// <!--
+		//Core XHR handling taken from Dojo IO code.
+		dojo = {};
+		dojo.hostenv = {};
+		// These are in order of decreasing likelihood; this will change in time.
+		dojo.hostenv._XMLHTTP_PROGIDS = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'];
+		
+		dojo.hostenv.getXmlhttpObject = function(){
+				var http = null;
+			var last_e = null;
+			try{ http = new XMLHttpRequest(); }catch(e){}
+				if(!http){
+				for(var i=0; i<3; ++i){
+					var progid = dojo.hostenv._XMLHTTP_PROGIDS[i];
+					try{
+						http = new ActiveXObject(progid);
+					}catch(e){
+						last_e = e;
+					}
+		
+					if(http){
+						dojo.hostenv._XMLHTTP_PROGIDS = [progid];  // so faster next time
+						break;
+					}
+				}
+		
+				/*if(http && !http.toString) {
+					http.toString = function() { "[object XMLHttpRequest]"; }
+				}*/
+			}
+		
+			if(!http){
+				throw "xip_server.html: XMLHTTP not available: " + last_e;
+			}
+		
+			return http;
+		}
+
+		dojo.setHeaders = function(http, headers){
+			if(headers) {
+				for(var header in headers) {
+					var headerValue = headers[header];
+					http.setRequestHeader(header, headerValue);
+				}
+			}
+		}
+
+	//MSIE has the lowest limit for URLs with fragment identifiers,
+	//at around 4K. Choosing a slightly smaller number for good measure.
+	xipUrlLimit = 4000;
+	xipIdCounter = 1;
+
+	function xipServerInit(){
+		xipStateId = "";
+		xipCurrentHash = "";
+		xipRequestMessage = "";
+		xipResponseParts = [];
+		xipPartIndex = 0;
+	}
+
+	function pollHash(){
+		//Can't use location.hash because at least Firefox does a decodeURIComponent on it.
+		var urlParts = window.location.href.split("#");
+		if(urlParts.length == 2){
+			var newHash = urlParts[1];
+			if(newHash != xipCurrentHash){
+				try{
+					messageReceived(newHash);
+				}catch(e){
+					//Make sure to not keep processing the error hash value.
+					xipCurrentHash = newHash;
+					throw e;
+				}
+				xipCurrentHash = newHash;
+			}
+		}
+	}
+
+	function messageReceived(encodedData){
+		var msg = unpackMessage(encodedData);
+		
+		switch(msg.command){
+			case "ok":
+				sendResponsePart();
+				break;
+			case "start":
+				xipRequestMessage = "";
+				xipRequestMessage += msg.message;
+				setClientUrl("ok");
+				break;
+			case "part":
+				xipRequestMessage += msg.message;			
+				setClientUrl("ok");
+				break;
+			case "end":
+				setClientUrl("ok");
+				xipRequestMessage += msg.message;
+				sendXhr();
+				break;
+		}
+	}
+
+	function sendResponse(encodedData){
+		//Break the message into parts, if necessary.
+		xipResponseParts = [];
+		var resData = encodedData;
+		var urlLength = xipClientUrl.length;
+		var partLength = xipUrlLimit - urlLength;
+		var resIndex = 0;
+
+		while((resData.length - resIndex) + urlLength > xipUrlLimit){
+			var part = resData.substring(resIndex, resIndex + partLength);
+			//Safari will do some extra hex escaping unless we keep the original hex
+			//escaping complete.
+			var percentIndex = part.lastIndexOf("%");
+			if(percentIndex == part.length - 1 || percentIndex == part.length - 2){
+				part = part.substring(0, percentIndex);
+			}
+			xipResponseParts.push(part);
+			resIndex += part.length;
+		}
+		xipResponseParts.push(resData.substring(resIndex, resData.length));
+		
+		xipPartIndex = 0;
+		sendResponsePart();
+	}
+	
+	function sendResponsePart(){
+		if(xipPartIndex < xipResponseParts.length){
+			//Get the message part.
+			var partData = xipResponseParts[xipPartIndex];
+			
+			//Get the command.
+			var cmd = "part";
+			if(xipPartIndex + 1 == xipResponseParts.length){
+				cmd = "end";
+			}else if (xipPartIndex == 0){
+				cmd = "start";
+			}
+
+			setClientUrl(cmd, partData);
+			xipPartIndex++;
+		}else{
+			xipServerInit();
+		}
+	}
+
+	function setClientUrl(cmd, message){
+		var clientUrl = makeClientUrl(cmd, message);
+		//Safari won't let us replace across domains.
+		if(navigator.userAgent.indexOf("Safari") == -1){
+			xipClientWindow.location.replace(clientUrl);
+		}else{
+			xipClientWindow.location = clientUrl;
+		}
+	}
+
+	function makeClientUrl(cmd, message){
+		var clientUrl = xipClientUrl + "#" + (xipIdCounter++) + ":" + cmd;
+		if(message){
+			clientUrl += ":" + message;
+		}
+		return clientUrl
+	}
+
+	function xhrDone(xhr){
+		/* Need to pull off and return the following data:
+			- responseHeaders
+			- status
+			- statusText
+			- responseText
+		*/
+		var response = {};
+	
+		if(typeof(xhr.getAllResponseHeaders) != "undefined"){
+			var allHeaders = xhr.getAllResponseHeaders();
+			if(allHeaders){
+				response.responseHeaders = allHeaders;
+			}
+		}
+		
+		if(xhr.status == 0 || xhr.status){
+			response.status = xhr.status;
+		}
+		
+		if(xhr.statusText){
+			response.statusText = xhr.statusText;
+		}
+		
+		if(xhr.responseText){
+			response.responseText = xhr.responseText;
+		}
+	
+		//Build a string of the response object.
+		var result = "";
+		var isFirst = true;
+		for (var param in response){
+			if(isFirst){
+				isFirst = false;
+			}else{
+				result += "&";
+			}
+			result += param + "=" + encodeURIComponent(response[param]);
+		}
+		sendResponse(result);
+	}
+
+	function sendXhr(){
+		var request = {};
+		var nvPairs = xipRequestMessage.split("&");
+		var i = 0;
+		var nameValue = null;
+		for(i = 0; i < nvPairs.length; i++){
+			if(nvPairs[i]){
+				var nameValue = nvPairs[i].split("=");
+				request[decodeURIComponent(nameValue[0])] = decodeURIComponent(nameValue[1]);
+			}
+		}
+
+		//Split up the request headers, if any.
+		var headers = {};
+		if(request.requestHeaders){
+			nvPairs = request.requestHeaders.split("\r\n");
+			for(i = 0; i < nvPairs.length; i++){
+				if(nvPairs[i]){
+					nameValue = nvPairs[i].split(": ");
+					headers[decodeURIComponent(nameValue[0])] = decodeURIComponent(nameValue[1]);
+				}
+			}
+
+			request.requestHeaders = headers;
+		}
+		
+		if(isAllowedRequest(request)){
+		
+			//The request is allowed, so set up the XHR object.
+			var xhr = dojo.hostenv.getXmlhttpObject();
+			
+			//Start timer to look for readyState.
+			var xhrIntervalId = setInterval(function(){
+			
+				if(xhr.readyState == 4){
+					clearInterval(xhrIntervalId);
+					xhrDone(xhr);
+				}
+			}, 10);
+
+			//Actually start up the XHR request.
+			xhr.open(request.method, request.uri, true);
+			dojo.setHeaders(xhr, request.requestHeaders);
+			
+			var content = "";
+			if(request.data){
+				content = request.data;
+			}
+
+			try{
+				xhr.send(content);
+			}catch(e){
+				if(typeof xhr.abort == "function"){
+					xhr.abort();
+					xhrDone({status: 404, statusText: "xip_server.html error: " + e});
+				}
+			}
+		}
+	}
+
+	function unpackMessage(encodedMessage){
+		var parts = encodedMessage.split(":");
+		var command = parts[1];
+		encodedMessage = parts[2] || "";
+
+		var config = null;
+		if(command == "init"){
+			var configParts = encodedMessage.split("&");
+			config = {};
+			for(var i = 0; i < configParts.length; i++){
+				var nameValue = configParts[i].split("=");
+				config[decodeURIComponent(nameValue[0])] = decodeURIComponent(nameValue[1]);
+			}
+		}
+		return {command: command, message: encodedMessage, config: config};
+	}
+
+	function onServerLoad(){
+		xipServerInit();
+
+		//Decode the init params
+		var config = unpackMessage(window.location.href.split("#")[1]).config;
+
+		xipStateId = config.id;
+		xipClientUrl = config.client;
+		
+		//Make sure we don't have a javascript: url, just for good measure.
+		if(xipClientUrl.split(":")[0].match(/javascript/i)){
+			throw "Invalid client URL";
+		}
+		if(!xipStateId.match(/^XhrIframeProxy[0-9]+$/)){
+			throw "Invalid state ID";
+		}
+	
+		setInterval(pollHash, 10);
+		
+		var serverUrl = window.location.href.split("#")[0];
+		document.getElementById("iframeHolder").innerHTML = '<iframe name="'
+			+ xipStateId + '_clientEndPoint'
+			+ '" src="javascript:false">'
+			+ '</iframe>';
+		xipClientWindow = document.getElementsByTagName("iframe")[0];
+		xipClientWindow.src = makeClientUrl("init", 'id=' + xipStateId + "&callback=" + encodeURIComponent(config.callback));
+		if(xipClientWindow.contentWindow){
+			xipClientWindow = xipClientWindow.contentWindow;
+		}
+	}
+
+	if(typeof(window.addEventListener) == "undefined"){
+		window.attachEvent("onload", onServerLoad);
+	}else{
+		window.addEventListener('load', onServerLoad, false);
+	}
+	// -->
+	<!-- </script> -->
+</head>
+<body>
+	<h4>The Dojo Toolkit -- xip_server.html</h4>
+
+	<p>This file is used for Dojo's XMLHttpRequest Iframe Proxy. This is the the file
+	that should go on the server that will actually be doing the XHR request.</p>
+	<div id="iframeHolder"></div>
+</body>
+</html>

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/proxy/xip_server.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/scriptFrame.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/scriptFrame.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/scriptFrame.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/scriptFrame.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,52 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.io.scriptFrame"]){
+dojo._hasResource["dojox.io.scriptFrame"]=true;
+dojo.provide("dojox.io.scriptFrame");
+dojo.require("dojo.io.script");
+dojo.require("dojo.io.iframe");
+(function(){
+var _1=dojo.io.script;
+dojox.io.scriptFrame={_waiters:{},_loadedIds:{},_getWaiters:function(_2){
+return this._waiters[_2]||(this._waiters[_2]=[]);
+},_fixAttachUrl:function(_3){
+},_loaded:function(_4){
+var _5=this._getWaiters(_4);
+this._loadedIds[_4]=true;
+this._waiters[_4]=null;
+for(var i=0;i<_5.length;i++){
+var _7=_5[i];
+_7.frameDoc=dojo.io.iframe.doc(dojo.byId(_4));
+_1.attach(_7.id,_7.url,_7.frameDoc);
+}
+}};
+var _8=_1._canAttach;
+var _9=dojox.io.scriptFrame;
+_1._canAttach=function(_a){
+var _b=_a.args.frameDoc;
+if(_b&&dojo.isString(_b)){
+var _c=dojo.byId(_b);
+var _d=_9._getWaiters(_b);
+if(!_c){
+_d.push(_a);
+dojo.io.iframe.create(_b,dojox._scopeName+".io.scriptFrame._loaded('"+_b+"');");
+}else{
+if(_9._loadedIds[_b]){
+_a.frameDoc=dojo.io.iframe.doc(_c);
+this.attach(_a.id,_a.url,_a.frameDoc);
+}else{
+_d.push(_a);
+}
+}
+return false;
+}else{
+return _8.apply(this,arguments);
+}
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/scriptFrame.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/windowName.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/windowName.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/windowName.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/windowName.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,156 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.io.windowName"]){
+dojo._hasResource["dojox.io.windowName"]=true;
+dojo.provide("dojox.io.windowName");
+dojox.io.windowName={send:function(_1,_2){
+_2.url+=(_2.url.match(/\?/)?"&":"?")+"windowname="+(_2.authElement?"auth":true);
+var _3=_2.authElement;
+var _4=function(_5){
+try{
+var _6=_7.ioArgs.frame.contentWindow.document;
+_6.write(" ");
+_6.close();
+}
+catch(e){
+}
+(_3||dojo.body()).removeChild(_7.ioArgs.outerFrame);
+return _5;
+};
+var _7=dojo._ioSetArgs(_2,_4,_4,_4);
+if(_2.timeout){
+setTimeout(function(){
+if(_7.fired==-1){
+_7.callback(new Error("Timeout"));
+}
+},_2.timeout);
+}
+var _8=dojox.io.windowName;
+if(dojo.body()){
+_8._send(_7,_1,_3,_2.onAuthLoad);
+}else{
+dojo.addOnLoad(function(){
+_8._send(_7,_1,_3,_2.onAuthLoad);
+});
+}
+return _7;
+},_send:function(_9,_a,_b,_c){
+var _d=_9.ioArgs;
+var _e=dojox.io.windowName._frameNum++;
+var _f=(dojo.config["dojoCallbackUrl"]||dojo.moduleUrl("dojo","resources/blank.html"))+"#"+_e;
+var _10=new dojo._Url(window.location,_f);
+var doc=dojo.doc;
+var _12=_b||dojo.body();
+function _13(_14){
+_14.style.width="100%";
+_14.style.height="100%";
+_14.style.border="0px";
+};
+if(dojo.isMoz&&![].reduce){
+var _15=doc.createElement("iframe");
+_13(_15);
+if(!_b){
+_15.style.display="none";
+}
+_12.appendChild(_15);
+var _16=_15.contentWindow;
+doc=_16.document;
+doc.write("<html><body margin='0px'><iframe style='width:100%;height:100%;border:0px' name='protectedFrame'></iframe></body></html>");
+doc.close();
+var _17=_16[0];
+_16.__defineGetter__(0,function(){
+});
+_16.__defineGetter__("protectedFrame",function(){
+});
+doc=_17.document;
+doc.write("<html><body margin='0px'></body></html>");
+doc.close();
+_12=doc.body;
+}
+var _18=_d.frame=_18=doc.createElement(dojo.isIE?"<iframe name=\""+_10+"\" onload=\"dojox.io.windowName["+_e+"]()\">":"iframe");
+_13(_18);
+_d.outerFrame=_15=_15||_18;
+if(!_b){
+_15.style.display="none";
+}
+var _19=0;
+function _1a(){
+var _1b=_18.contentWindow.name;
+if(typeof _1b=="string"){
+if(_1b!=_10){
+_19=2;
+_9.ioArgs.hash=_18.contentWindow.location.hash;
+_9.callback(_1b);
+}
+}
+};
+dojox.io.windowName[_e]=_18.onload=function(){
+try{
+if(!dojo.isMoz&&_18.contentWindow.location=="about:blank"){
+return;
+}
+}
+catch(e){
+}
+if(!_19){
+_19=1;
+if(_b){
+if(_c){
+_c();
+}
+}else{
+_18.contentWindow.location=_f;
+}
+}
+try{
+if(_19<2){
+_1a();
+}
+}
+catch(e){
+}
+};
+_18.name=_10;
+if(_a.match(/GET/i)){
+dojo._ioAddQueryToUrl(_d);
+_18.src=_d.url;
+_12.appendChild(_18);
+if(_18.contentWindow){
+_18.contentWindow.location.replace(_d.url);
+}
+}else{
+if(_a.match(/POST/i)){
+_12.appendChild(_18);
+var _1c=dojo.doc.createElement("form");
+dojo.body().appendChild(_1c);
+var _1d=dojo.queryToObject(_d.query);
+for(var i in _1d){
+var _1f=_1d[i];
+_1f=_1f instanceof Array?_1f:[_1f];
+for(var j=0;j<_1f.length;j++){
+var _21=doc.createElement("input");
+_21.type="hidden";
+_21.name=i;
+_21.value=_1f[j];
+_1c.appendChild(_21);
+}
+}
+_1c.method="POST";
+_1c.action=_d.url;
+_1c.target=_10;
+_1c.submit();
+_1c.parentNode.removeChild(_1c);
+}else{
+throw new Error("Method "+_a+" not supported with the windowName transport");
+}
+}
+if(_18.contentWindow){
+_18.contentWindow.name=_10;
+}
+},_frameNum:0};
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/windowName.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrMultiPart.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrMultiPart.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrMultiPart.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrMultiPart.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,71 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.io.xhrMultiPart"]){
+dojo._hasResource["dojox.io.xhrMultiPart"]=true;
+dojo.provide("dojox.io.xhrMultiPart");
+dojo.require("dojox.uuid.generateRandomUuid");
+(function(){
+function _1(_2,_3){
+if(!_2["name"]&&!_2["content"]){
+throw new Error("Each part of a multi-part request requires 'name' and 'content'.");
+}
+var _4=[];
+_4.push("--"+_3,"Content-Disposition: form-data; name=\""+_2.name+"\""+(_2["filename"]?"; filename=\""+_2.filename+"\"":""));
+if(_2["contentType"]){
+var ct="Content-Type: "+_2.contentType;
+if(_2["charset"]){
+ct+="; Charset="+_2.charset;
+}
+_4.push(ct);
+}
+if(_2["contentTransferEncoding"]){
+_4.push("Content-Transfer-Encoding: "+_2.contentTransferEncoding);
+}
+_4.push("",_2.content);
+return _4;
+};
+function _6(_7,_8){
+var o=dojo.formToObject(_7),_a=[];
+for(var p in o){
+if(dojo.isArray(o[p])){
+dojo.forEach(o[p],function(_c){
+_a=_a.concat(_1({name:p,content:_c},_8));
+});
+}else{
+_a=_a.concat(_1({name:p,content:o[p]},_8));
+}
+}
+return _a;
+};
+dojox.io.xhrMultiPart=function(_d){
+if(!_d["file"]&&!_d["content"]&&!_d["form"]){
+throw new Error("content, file or form must be provided to dojox.io.xhrMultiPart's arguments");
+}
+var _e=dojox.uuid.generateRandomUuid(),_f=[],out="";
+if(_d["file"]||_d["content"]){
+var v=_d["file"]||_d["content"];
+dojo.forEach((dojo.isArray(v)?v:[v]),function(_12){
+_f=_f.concat(_1(_12,_e));
+});
+}else{
+if(_d["form"]){
+if(dojo.query("input[type=file]",_d["form"]).length){
+throw new Error("dojox.io.xhrMultiPart cannot post files that are values of an INPUT TYPE=FILE.  Use dojo.io.iframe.send() instead.");
+}
+_f=_6(_d["form"],_e);
+}
+}
+if(_f.length){
+_f.push("--"+_e+"--","");
+out=_f.join("\r\n");
+}
+
+return dojo.rawXhrPost(dojo.mixin(_d,{contentType:"multipart/form-data; boundary="+_e,postData:out}));
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrMultiPart.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrPlugins.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrPlugins.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrPlugins.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrPlugins.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,110 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.io.xhrPlugins"]){
+dojo._hasResource["dojox.io.xhrPlugins"]=true;
+dojo.provide("dojox.io.xhrPlugins");
+dojo.require("dojo.AdapterRegistry");
+dojo.require("dojo._base.xhr");
+(function(){
+var _1;
+var _2;
+dojox.io.xhrPlugins.register=function(){
+if(!_1){
+_1=new dojo.AdapterRegistry();
+_2=dojox.io.xhrPlugins.plainXhr=dojo._defaultXhr||dojo.xhr;
+dojo[dojo._defaultXhr?"_defaultXhr":"xhr"]=function(_3,_4,_5){
+return _1.match.apply(_1,arguments);
+};
+_1.register("xhr",function(_6,_7){
+if(!_7.url.match(/^\w*:\/\//)){
+return true;
+}
+var _8=window.location.href.match(/^.*?\/\/.*?\//)[0];
+return _7.url.substring(0,_8.length)==_8;
+},_2);
+}
+return _1.register.apply(_1,arguments);
+};
+dojox.io.xhrPlugins.addProxy=function(_9){
+dojox.io.xhrPlugins.register("proxy",function(_a,_b){
+return true;
+},function(_c,_d,_e){
+_d.url=_9+encodeURIComponent(_d.url);
+return _2.call(dojo,_c,_d,_e);
+});
+};
+var _f;
+dojox.io.xhrPlugins.addCrossSiteXhr=function(url,_11){
+if(_f===undefined&&window.XMLHttpRequest){
+try{
+var xhr=new XMLHttpRequest();
+xhr.open("GET","http://fnadkfna.com",true);
+_f=true;
+}
+catch(e){
+_f=false;
+}
+}
+dojox.io.xhrPlugins.register("cs-xhr",function(_13,_14){
+return (_f||(window.XDomainRequest&&_14.sync!==true&&(_13=="GET"||_13=="POST"||_11)))&&(_14.url.substring(0,url.length)==url);
+},_f?_2:function(){
+var _15=dojo._xhrObj;
+dojo._xhrObj=function(){
+var xdr=new XDomainRequest();
+xdr.readyState=1;
+xdr.setRequestHeader=function(){
+};
+xdr.getResponseHeader=function(_17){
+return _17=="Content-Type"?xdr.contentType:null;
+};
+function _18(_19,_1a){
+return function(){
+xdr.readyState=_1a;
+xdr.status=_19;
+};
+};
+xdr.onload=_18(200,4);
+xdr.onprogress=_18(200,3);
+xdr.onerror=_18(404,4);
+return xdr;
+};
+var dfd=(_11?_11(_2):_2).apply(dojo,arguments);
+dojo._xhrObj=_15;
+return dfd;
+});
+};
+dojox.io.xhrPlugins.fullHttpAdapter=function(_1c,_1d){
+return function(_1e,_1f,_20){
+var _21={};
+var _22={};
+if(_1e!="GET"){
+_22["http-method"]=_1e;
+if(_1f.putData&&_1d){
+_21["http-content"]=_1f.putData;
+delete _1f.putData;
+_20=false;
+}
+if(_1f.postData&&_1d){
+_21["http-content"]=_1f.postData;
+delete _1f.postData;
+_20=false;
+}
+_1e="POST";
+}
+for(var i in _1f.headers){
+var _24=i.match(/^X-/)?i.substring(2).replace(/-/g,"_").toLowerCase():("http-"+i);
+_22[_24]=_1f.headers[i];
+}
+_1f.query=dojo.objectToQuery(_22);
+dojo._ioAddQueryToUrl(_1f);
+_1f.content=dojo.mixin(_1f.content||{},_21);
+return _1c.call(dojo,_1e,_1f,_20);
+};
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrPlugins.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrScriptPlugin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrScriptPlugin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrScriptPlugin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrScriptPlugin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,28 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.io.xhrScriptPlugin"]){
+dojo._hasResource["dojox.io.xhrScriptPlugin"]=true;
+dojo.provide("dojox.io.xhrScriptPlugin");
+dojo.require("dojox.io.xhrPlugins");
+dojo.require("dojo.io.script");
+dojo.require("dojox.io.scriptFrame");
+dojox.io.xhrScriptPlugin=function(_1,_2,_3){
+dojox.io.xhrPlugins.register("script",function(_4,_5){
+return _5.sync!==true&&(_4=="GET"||_3)&&(_5.url.substring(0,_1.length)==_1);
+},function(_6,_7,_8){
+var _9=function(){
+_7.callbackParamName=_2;
+if(dojo.body()){
+_7.frameDoc="frame"+Math.random();
+}
+return dojo.io.script.get(_7);
+};
+return (_3?_3(_9,true):_9)(_6,_7,_8);
+});
+};
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrScriptPlugin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrWindowNamePlugin.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrWindowNamePlugin.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrWindowNamePlugin.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrWindowNamePlugin.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,37 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.io.xhrWindowNamePlugin"]){
+dojo._hasResource["dojox.io.xhrWindowNamePlugin"]=true;
+dojo.provide("dojox.io.xhrWindowNamePlugin");
+dojo.require("dojox.io.xhrPlugins");
+dojo.require("dojox.io.windowName");
+dojo.require("dojox.io.httpParse");
+dojo.require("dojox.secure.capability");
+dojox.io.xhrWindowNamePlugin=function(_1,_2,_3){
+dojox.io.xhrPlugins.register("windowName",function(_4,_5){
+return _5.sync!==true&&(_4=="GET"||_4=="POST"||_2)&&(_5.url.substring(0,_1.length)==_1);
+},function(_6,_7,_8){
+var _9=dojox.io.windowName.send;
+var _a=(_2?_2(_9,true):_9)(_6,_7,_8);
+_a.addCallback(function(_b){
+var _c=_a.ioArgs;
+_c.xhr={getResponseHeader:function(_d){
+return dojo.queryToObject(_c.hash.match(/[^#]*$/)[0])[_d];
+}};
+if(_c.handleAs=="json"){
+if(!_3){
+dojox.secure.capability.validate(_b,["Date"],{});
+}
+return dojo.fromJson(_b);
+}
+return dojo._contentHandlers[_c.handleAs||"text"]({responseText:_b});
+});
+return _a;
+});
+};
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/io/xhrWindowNamePlugin.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/jsonPath.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/jsonPath.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/jsonPath.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/jsonPath.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.jsonPath"]){
+dojo._hasResource["dojox.jsonPath"]=true;
+dojo.provide("dojox.jsonPath");
+dojo.require("dojox.jsonPath.query");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/jsonPath.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/math.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/math.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/math.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/math.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.math"]){
+dojo._hasResource["dojox.math"]=true;
+dojo.provide("dojox.math");
+dojo.require("dojox.math._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/math.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/off.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/off.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/off.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.off"]){
+dojo._hasResource["dojox.off"]=true;
+dojo.provide("dojox.off");
+dojo.require("dojox.off._common");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/sketch.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/sketch.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/sketch.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/sketch.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,15 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.sketch"]){
+dojo._hasResource["dojox.sketch"]=true;
+dojo.provide("dojox.sketch");
+dojo.require("dojox.xml.DomParser");
+dojo.require("dojox.sketch.UndoStack");
+dojo.require("dojox.sketch.Figure");
+dojo.require("dojox.sketch.Toolbar");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/sketch.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/sql.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/sql.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/sql.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/sql.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.sql"]){
+dojo._hasResource["dojox.sql"]=true;
+dojo.provide("dojox.sql");
+dojo.require("dojox.sql._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/sql.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/storage.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/storage.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/storage.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/storage.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.storage"]){
+dojo._hasResource["dojox.storage"]=true;
+dojo.provide("dojox.storage");
+dojo.require("dojox.storage._common");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/storage.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/timing.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/timing.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/timing.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/timing.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.timing"]){
+dojo._hasResource["dojox.timing"]=true;
+dojo.provide("dojox.timing");
+dojo.require("dojox.timing._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/timing.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/uuid.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/uuid.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/uuid.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/uuid.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.uuid"]){
+dojo._hasResource["dojox.uuid"]=true;
+dojo.provide("dojox.uuid");
+dojo.require("dojox.uuid._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/uuid.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/validate.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/validate.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/validate.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/validate.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.validate"]){
+dojo._hasResource["dojox.validate"]=true;
+dojo.provide("dojox.validate");
+dojo.require("dojox.validate._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/validate.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/wire.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/wire.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/wire.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/wire.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.wire"]){
+dojo._hasResource["dojox.wire"]=true;
+dojo.provide("dojox.wire");
+dojo.require("dojox.wire._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/wire.js
------------------------------------------------------------------------------
    svn:eol-style = native