Class Utils
- java.lang.Object
-
- com.tikal.hudson.plugins.notification.Utils
-
public final class Utils extends Object
Helper utilities
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getSecretUrl(String credentialId, ItemGroup itemGroup)
Get the actual URL from the credential idstatic boolean
isEmpty(String... strings)
Determines if any of Strings specified is either null or empty.static void
verifyNotEmpty(String... strings)
Verifies neither of Strings specified is null or empty.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(String... strings)
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
public static void verifyNotEmpty(String... strings)
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.
-
-