SuperMap.Web.iServerJava6R.SpatialAnalyst.DatasetBufferAnalystService.GenerateAbsoluteUrl C# (CSharp) Method

GenerateAbsoluteUrl() private method

private GenerateAbsoluteUrl ( DatasetBufferAnalystParameters parameters ) : void
parameters DatasetBufferAnalystParameters
return void
        private void GenerateAbsoluteUrl(DatasetBufferAnalystParameters parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException("请求服务参数为空!");
            }

            if (string.IsNullOrEmpty(parameters.Dataset) || string.IsNullOrEmpty(parameters.Dataset))
            {
                throw new ArgumentNullException("数据集参数为空");
            }

            if (this.Url == null)
            {
                throw new InvalidOperationException(ExceptionStrings.InvalidUrl);
            }

            //http://192.168.11.154:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/datasets/SamplesP@Interpolation/buffer.json
            if (this.Url.EndsWith("/"))
            {
                this.Url += "datasets/" + parameters.Dataset + "/buffer.json?debug=true&returnContent=true";
            }
            else
            {
                this.Url += "/datasets/" + parameters.Dataset + "/buffer.json?debug=true&returnContent=true";
            }
        }