//>>built define(["dojo","dijit","dojox","dojo/require!dojox/wire/_base,dojox/wire/ml/util"],function(d,k,l){d.provide("dojox.wire.ml.RestHandler");d.require("dojox.wire._base");d.require("dojox.wire.ml.util");d.declare("dojox.wire.ml.RestHandler",null,{contentType:"text/plain",handleAs:"text",bind:function(a,b,e,c){a=a.toUpperCase();var h=this;c={url:this._getUrl(a,b,c),contentType:this.contentType,handleAs:this.handleAs,headers:this.headers,preventCache:this.preventCache};var f=null;"POST"==a?(c.postData= this._getContent(a,b),f=d.rawXhrPost(c)):"PUT"==a?(c.putData=this._getContent(a,b),f=d.rawXhrPut(c)):f="DELETE"==a?d.xhrDelete(c):d.xhrGet(c);f.addCallbacks(function(a){e.callback(h._getResult(a))},function(a){e.errback(a)})},_getUrl:function(a,b,e){var c;"GET"==a||"DELETE"==a?0