java.lang.Object
com.tikal.hudson.plugins.notification.Utils

public final class Utils
extends Object
Helper utilities
  • Method Details

    • 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)
      Get the actual URL from the credential id
      Parameters:
      credentialId - Credential id to lookup
      Returns:
      Actual URL