Class FunctionalUtility


  • public class FunctionalUtility
    extends Object
    various utility methods that have no better home
    • Method Detail

      • toStringArray

        public static String[] toStringArray​(List<String> source)
        converts ArrayList{String} to String[]
        Parameters:
        source - list to convert to array
        Returns:
        String[] containing all members from source
        Throws:
        IllegalArgumentException - if source is null
      • isSuccessStatusCode

        public static boolean isSuccessStatusCode​(org.apache.http.HttpResponse response)
        determines if the response was successful based on status code
        Parameters:
        response - HttpResponse object to check
        Returns:
        true if status code is in the 200 range; otherwise, false