Class AppCommon

java.lang.Object
com.netsparker.cloud.utility.AppCommon

public class AppCommon extends Object
  • Constructor Details

    • AppCommon

      public AppCommon()
  • Method Details

    • getNames

      public static List<String> getNames(Class<? extends Enum<?>> e)
    • isUrlValid

      public static boolean isUrlValid(String url)
    • isValidEmailAddress

      public static boolean isValidEmailAddress(String email)
    • isGUIDValid

      public static boolean isGUIDValid(String guid)
    • getBaseURL

      public static URL getBaseURL(String url) throws MalformedURLException
      Throws:
      MalformedURLException
    • mapToQueryString

      public static String mapToQueryString(Map<String,String> map)
    • queryStringToMap

      public static Map<String,String> queryStringToMap(String input)
    • 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

      public static List<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> findCredentials(Item own)