Class Utils


  • public final class Utils
    extends Object
    Helper utilities
    • 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.
      • getSecretUrl

        public static String getSecretUrl​(String credentialId,
                                          ItemGroup itemGroup)
        Get the actual URL from the credential id
        Parameters:
        credentialId - Credential id to lookup
        itemGroup - the item group to look for the credential
        Returns:
        Actual URL