make sure the RundeckClient is well configured

This commit is contained in:
Vincent Behar 2011-07-04 17:08:22 +02:00
parent 0b37e5dc8e
commit 3720fe9d31

View file

@ -45,12 +45,16 @@ public class RundeckClient implements Serializable {
* @param url of the RunDeck instance ("http://localhost:4440", "http://rundeck.your-compagny.com/", etc)
* @param login
* @param password
* @throws IllegalArgumentException if the url, login or password is blank (null, empty or whitespace)
*/
public RundeckClient(String url, String login, String password) {
public RundeckClient(String url, String login, String password) throws IllegalArgumentException {
super();
this.url = url;
this.login = login;
this.password = password;
AssertUtil.notBlank(url, "The RunDeck URL is mandatory !");
AssertUtil.notBlank(login, "The RunDeck login is mandatory !");
AssertUtil.notBlank(password, "The RunDeck password is mandatory !");
}
/**