public class QualityGateResponseParser extends Object
Constructor and Description |
---|
QualityGateResponseParser() |
Modifier and Type | Method and Description |
---|---|
protected org.json.JSONArray |
createJSONArrayFromString(String jsonString) |
protected org.json.JSONObject |
createObjectWithStatusGreen() |
protected org.json.JSONObject |
getJSONObjectFromArray(org.json.JSONArray array,
int index) |
protected org.json.JSONObject |
getLatestEventResult(org.json.JSONArray jsonArray) |
QualityGatesStatus |
getQualityGateResultFromJSON(String jsonString) |
protected String |
getValueForJSONKey(org.json.JSONObject jsonObject,
String key) |
protected String |
getValueForJSONKey(List<org.json.JSONObject> array,
int index,
String key) |
public QualityGatesStatus getQualityGateResultFromJSON(String jsonString) throws QGException
QGException
protected org.json.JSONObject getLatestEventResult(org.json.JSONArray jsonArray) throws QGException
QGException
protected org.json.JSONObject createObjectWithStatusGreen()
protected org.json.JSONObject getJSONObjectFromArray(org.json.JSONArray array, int index) throws QGException
QGException
protected String getValueForJSONKey(List<org.json.JSONObject> array, int index, String key) throws QGException
QGException
protected String getValueForJSONKey(org.json.JSONObject jsonObject, String key) throws QGException
QGException
protected org.json.JSONArray createJSONArrayFromString(String jsonString) throws QGException
QGException
Copyright © 2016. All rights reserved.