Package com.netsparker.cloud.utility
Class AppCommon
java.lang.Object
com.netsparker.cloud.utility.AppCommon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
findCredentials
(Item own) static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
findCredentialsById
(String credentialsId, String descriptorUrlOrJobUrl) static URL
getBaseURL
(String url) static boolean
isGUIDValid
(String guid) static boolean
isUrlValid
(String url) static boolean
isValidEmailAddress
(String email) static String
mapToQueryString
(Map<String, String> map) static Object
parseJsonValue
(String Data, String key) static String
parseResponseToString
(org.apache.hc.core5.http.ClassicHttpResponse response) queryStringToMap
(String input)
-
Constructor Details
-
AppCommon
public AppCommon()
-
-
Method Details
-
getNames
-
isUrlValid
-
isValidEmailAddress
-
isGUIDValid
-
getBaseURL
- Throws:
MalformedURLException
-
mapToQueryString
-
queryStringToMap
-
parseJsonValue
public static Object parseJsonValue(String Data, String key) throws org.json.simple.parser.ParseException - Throws:
org.json.simple.parser.ParseException
-
parseResponseToString
public static String parseResponseToString(org.apache.hc.core5.http.ClassicHttpResponse response) throws IOException - Throws:
IOException
-
findCredentialsById
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials findCredentialsById(String credentialsId, String descriptorUrlOrJobUrl) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
findCredentials
-