Helper method to build the PUT request for the server.

@param path the path
@param paramMap the parameters map.
@return the put object.
430794
protected HttpPut generatePutRequest(final String path, final Map<String, Object> paramMap) {
        final HttpPut put = new HttpPut(buildUri(path));
        if (paramMap != null) {
            put.setEntity(new StringEntity(JSONObject.toJSONString(paramMap), ContentType.APPLICATION_JSON));
        }
        return put;
    }
648785
protected static void put(String resource, RequestParams params, ResponseHandler responseHandler) {
        requestAuthenticated(new Request(WonderPushConfiguration.getUserId(), HttpMethod.PUT, resource, params, responseHandler));
    }
960465
public Object putRequest(String restUrl, Map<String, String> params) throws IOException, WebServiceException {
		return this.postRequest(HttpMethod.PUT, restUrl, params);
	}
786507
@Override
    public T addAsDirectory(final String path) throws IllegalArgumentException {
        // Precondition check
        Validate.notNullOrEmpty(path, "path must be specified");

        // Delegate and return
        return this.addAsDirectory(ArchivePaths.create(path));
    }
66656
public static HttpRequestBase put(String path,
	                                  Map<String, String> headers,
	                                  Map<String, String> parameters,
	                                  Integer timeOutInSeconds) {

		return put(path, headers, parameters, null, timeOutInSeconds);
	}
1204819
protected RestResponse requestJson(final String path, final String method, final String param)
            throws IOException, AppPlatformException {
        final HttpUriRequest request = setupRequestJson(path, method, param);
        return performRequest(request);
    }
121301
def put(path, data = {}, header = {})
      _send(json_request(Net::HTTP::Patch, path, data, header))
    end
926379
public function put($url, $params = null) {
    $this->params = $params;
    $this->method = 'PUT';
    $this->url = $url;

    return $this->request();
  }
561582
def put(self, service, path, body, **kwargs):
        
        return self.make_request(Methods.POST, service, path, body=body,
                                 **kwargs)
893272
public function put($path, $parameters = null, $version = null, $etag = null)
        {
            return $this->api('PUT', $path, $parameters, $version, $etag);
        }
933960
@PUT
    public JSONObject put(String path, JSONObject content, Map<String,String> headers) throws ServiceException, JSONException {
        throw new ServiceException(ServiceException.NOT_ALLOWED, "PUT not implemented");
    }
232630
def put(path, options = {}, headers = {}, raw = false)
      request(:put, path, options, headers, raw)
    end
781716
@Override
	public SqlContext paramMap(final Map<String, ?> paramMap) {
		if (paramMap != null) {
			paramMap.forEach((k, v) -> param(k, v));
		}
		return this;
	}
340492
public RestResponse put(final String uri, final Map<String, Object> params) throws IOException,
            AppPlatformException {
        return request(getPath(uri), HttpPut.METHOD_NAME, params);
    }
507881
public function put($path, $params = []){
        $json = json_encode($params);
        
        return $this->_call('PUT', $path, $json);
    }
1080632
public Response put(String restPath, Object payload, Map<String, String> queryParams) {
		LOG.debug("PUT: {}", restPath);
		return call(HttpMethod.PUT, restPath, Response.class, payload, queryParams);
	}
273115
public Resource addPath(String path)
        throws IOException,MalformedURLException
    {
        if (path==null)
            return null;

        path = URI.canonicalPath(path);

        return newResource(URI.addPaths(_url.toExternalForm(),path));
    }