Class JsonHelper
- java.lang.Object
-
- org.jenkinsci.plugins.cloudhubdeployer.utils.JsonHelper
-
public final class JsonHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckIfApiExists(String response, String domainName)static booleancheckIfKeyExists(String response, String key)static com.google.gson.JsonArraygetenvList(String response)static StringparseAccessToken(String loginResponse)static StringverifyOrGetEnvId(String response, String envIdOrName)
-
-
-
Method Detail
-
getenvList
public static com.google.gson.JsonArray getenvList(String response) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
verifyOrGetEnvId
public static String verifyOrGetEnvId(String response, String envIdOrName) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
-