Class Utils
java.lang.Object
com.tikal.hudson.plugins.notification.Utils
public final class Utils extends Object
Helper utilities
-
Method Summary
Modifier and Type Method Description static StringgetSecretUrl(String credentialId)Get the actual URL from the credential idstatic booleanisEmpty(String... strings)Determines if any of Strings specified is either null or empty.static voidverifyNotEmpty(String... strings)Verifies neither of Strings specified is null or empty.
-
Method Details
-
isEmpty
Determines if any of Strings specified is either null or empty.- Parameters:
strings- - Strings to check for empty (whitespace is trimmed) or null.- Returns:
- True if any string is empty
-
verifyNotEmpty
Verifies neither of Strings specified is null or empty.- Parameters:
strings- Strings to check for empty (whitespace is trimmed) or null.- Throws:
IllegalArgumentException- Throws this exception if any string is empty.
-
getSecretUrl
Get the actual URL from the credential id- Parameters:
credentialId- Credential id to lookup- Returns:
- Actual URL
-