private RESTResponse sendRequest ( RESTClient restClient , String methodName , String uri , byte [ ] body ) throws IOException { RESTResponse response = restClient . sendRequest ( HttpMethod . methodFromString ( methodName ) , uri , ContentType . APPLICATION_JSON , body ) ; logger . debug ( "response: {}" , response . toString ( ) ) ; return response ; }
Make RESTful calls to Doradus server