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 ; }
Helper method to build the PUT request for the server .