public class Helper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Helper.QualysLogFormatter |
Modifier and Type | Field and Description |
---|---|
static Map<String,Map<String,String>> |
platformsList |
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
static void |
copyEvaluationResultToFile(String rootDir,
String filename,
PrintStream buildLogger,
com.google.gson.JsonObject evalresult) |
static void |
createGlEnVar(String key,
String value) |
static void |
createNewFile(String rootDir,
String filename,
String content,
PrintStream buildLogger) |
static Object |
execXPath(Node node,
String xPath,
QName type) |
static Object |
execXPath(String xml,
String xPath,
QName type) |
QualysVMClient |
getClient(boolean useProxy,
String server,
String credsId,
String proxyServer,
int proxyPortInt,
String proxyCredentialsId,
Item item) |
ArrayList<String> |
getCredentails(String credentialsId,
Item item) |
static Logger |
getLogger(String loggerName) |
static Comparator<ListBoxModel.Option> |
getOptionItemmsComparator() |
QualysAuth |
getQualysAuth(boolean useProxy,
String server,
String credsId,
String proxyServer,
int proxyPortInt,
String proxyCredentialsId,
Item item) |
static String |
intListToString(ArrayList<Integer> numbers) |
static boolean |
isValidCVEList(String cveList) |
static boolean |
isValidQidList(String qidList) |
static String |
longToTime(long millis) |
static com.google.gson.JsonObject |
removeBigData(com.google.gson.JsonObject respObj) |
static String |
secondsToReadableTime(long duration) |
static void |
setOptionItemmsComparator(Comparator<ListBoxModel.Option> optionItemmsComparator) |
static String |
stringListToString(ArrayList<String> strings) |
static String |
urlEncodeUTF8(com.google.gson.JsonObject map) |
static String |
urlEncodeUTF8(String s) |
public QualysVMClient getClient(boolean useProxy, String server, String credsId, String proxyServer, int proxyPortInt, String proxyCredentialsId, Item item)
public QualysAuth getQualysAuth(boolean useProxy, String server, String credsId, String proxyServer, int proxyPortInt, String proxyCredentialsId, Item item)
public static boolean isValidCVEList(String cveList)
public static boolean isValidQidList(String qidList)
public static String secondsToReadableTime(long duration)
public static Object execXPath(String xml, String xPath, QName type) throws ParserConfigurationException
ParserConfigurationException
public static void createNewFile(String rootDir, String filename, String content, PrintStream buildLogger) throws UnsupportedEncodingException
UnsupportedEncodingException
public static void copyEvaluationResultToFile(String rootDir, String filename, PrintStream buildLogger, com.google.gson.JsonObject evalresult) throws IOException
IOException
public static String urlEncodeUTF8(com.google.gson.JsonObject map)
public static void createGlEnVar(String key, String value) throws IOException
IOException
public static String longToTime(long millis)
public static com.google.gson.JsonObject removeBigData(com.google.gson.JsonObject respObj)
public static Comparator<ListBoxModel.Option> getOptionItemmsComparator()
public static void setOptionItemmsComparator(Comparator<ListBoxModel.Option> optionItemmsComparator)
optionItemmsComparator
- the optionItemmsComparator to setCopyright © 2016–2022 Qualys Inc.. All rights reserved.