public static String retrieveData ( String url , String user , String password , int timeoutMs ) throws IOException { try ( HttpClientWrapper wrapper = new HttpClientWrapper ( user , password , timeoutMs ) ) { return wrapper . simpleGet ( url ) ; } }
Small helper method to simply query the URL without password and return the resulting data .