C_WebDavGetProperties.js 1.1 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: hal
  3. // (C) Copyright IBM Corp. 2003, 2017.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function C_WebDavGetProperties(_hLN1, _hHD2, _hFE1, _hO72){this.F_ConstructBaseClass(_hLN1, "PROPFIND", _hHD2);this.F_SetRequestHeader( "Content-Type", 'text/xml; charset="utf-8"' );this.F_SetRequestHeader("Depth", isNaN(_hO72)?'0':_hO72.toString());var _h3B2='<D:propfind xmlns:D="DAV:">';if(_hFE1){for(var i=0;i<_hFE1.length;i++){_h3B2 += '<D:prop><D:' + _hFE1[i] + '/></D:prop>';}}else{_h3B2+= '<D:allprop/>';}_h3B2+= '</D:propfind>';this.F_SetRequestBody(_h3B2);};C_WebDavGetProperties.F_Extends(C_WebRequest);C_WebDavGetProperties.prototype.F_GetError=function(){var _hW52=C_WebDavGetProperties.superClass.F_GetError.call(this);if(!_hW52){return null;}var _hXU1=this.F_GetUrl();var _h632=this.F_GetStatus();var _hGE1=this.F_GetStatusText();if(_h632&&_hGE1){_hXU1=_h632+" - " + _hGE1 + "\n" + this.F_GetUrl();}return new C_Error(_hW52.F_GetErrorSummary(), _hXU1, "");};