mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-08 05:58:39 +00:00
make sure the RundeckClient is well configured
This commit is contained in:
parent
0b37e5dc8e
commit
3720fe9d31
1 changed files with 5 additions and 1 deletions
|
@ -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 url of the RunDeck instance ("http://localhost:4440", "http://rundeck.your-compagny.com/", etc)
|
||||||
* @param login
|
* @param login
|
||||||
* @param password
|
* @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();
|
super();
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.login = login;
|
this.login = login;
|
||||||
this.password = password;
|
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 !");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue