Class Utils
- java.lang.Object
-
- redhat.jenkins.plugins.rhda.utils.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
doExecute(String cmd, PrintStream logger, Map<String,String> envs)
static Set<com.redhat.exhort.api.Severity>
getAllHighestSeveritiesFromResponse(com.redhat.exhort.api.AnalysisReport analysisReport)
static String
getOperatingSystem()
static boolean
is32()
static boolean
is64()
static boolean
isHighestVulnerabilityAllowedExceeded(Set<com.redhat.exhort.api.Severity> severities, com.redhat.exhort.api.Severity highestAllowedSeverity)
static boolean
isJSONValid(String test)
static boolean
isLinux()
static boolean
isMac()
static boolean
isWindows()
static boolean
urlExists(String urlStr)
-
-
-
Method Detail
-
isJSONValid
public static boolean isJSONValid(String test)
-
urlExists
public static boolean urlExists(String urlStr)
-
getOperatingSystem
public static String getOperatingSystem()
-
isWindows
public static boolean isWindows()
-
isLinux
public static boolean isLinux()
-
isMac
public static boolean isMac()
-
is32
public static boolean is32()
-
is64
public static boolean is64()
-
isHighestVulnerabilityAllowedExceeded
public static boolean isHighestVulnerabilityAllowedExceeded(Set<com.redhat.exhort.api.Severity> severities, com.redhat.exhort.api.Severity highestAllowedSeverity)
-
getAllHighestSeveritiesFromResponse
public static Set<com.redhat.exhort.api.Severity> getAllHighestSeveritiesFromResponse(com.redhat.exhort.api.AnalysisReport analysisReport) throws InterruptedException, ExecutionException
-
-