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
QGExceptionprotected org.json.JSONObject getLatestEventResult(org.json.JSONArray jsonArray)
throws QGException
QGExceptionprotected org.json.JSONObject createObjectWithStatusGreen()
protected org.json.JSONObject getJSONObjectFromArray(org.json.JSONArray array,
int index)
throws QGException
QGExceptionprotected String getValueForJSONKey(List<org.json.JSONObject> array, int index, String key) throws QGException
QGExceptionprotected String getValueForJSONKey(org.json.JSONObject jsonObject, String key) throws QGException
QGExceptionprotected org.json.JSONArray createJSONArrayFromString(String jsonString) throws QGException
QGExceptionCopyright © 2016. All rights reserved.