Package com.rapid7.appspider
Class FunctionalUtility
- java.lang.Object
-
- com.rapid7.appspider.FunctionalUtility
-
public class FunctionalUtility extends Object
various utility methods that have no better home
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSuccessStatusCode(org.apache.http.HttpResponse response)
determines if the response was successful based on status codestatic String[]
toStringArray(List<String> source)
converts ArrayList{String} to String[]
-
-
-
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
-
-