// this happens because responseObjName won't exist if there are no objects in the list.
logger.debug("CloudSatck API response doesn't contain responseObjName:" + responseObjName +
" because response is empty");
return null;
}
return (new Gson()).fromJson(json.eval(responseName), collectionType);
}
public JsonAccessor execute(CloudStackCommand cmd, String apiKey, String secretKey) throws Exception {
JsonParser parser = new JsonParser();
URL url = new URL(_serviceUrl + cmd.signCommand(apiKey, secretKey));