Class QualityGateResponseParser

java.lang.Object
org.quality.gates.sonar.api.QualityGateResponseParser

public class QualityGateResponseParser extends Object
  • Constructor Details

    • QualityGateResponseParser

      public QualityGateResponseParser()
  • Method Details

    • getQualityGateResultFromJSON

      public QualityGatesStatus getQualityGateResultFromJSON(String jsonString) throws QGException
      Throws:
      QGException
    • getLatestEventResult

      protected org.json.JSONObject getLatestEventResult(org.json.JSONArray jsonArray) throws QGException
      Throws:
      QGException
    • createObjectWithStatusGreen

      protected org.json.JSONObject createObjectWithStatusGreen()
    • getJSONObjectFromArray

      protected org.json.JSONObject getJSONObjectFromArray(org.json.JSONArray array, int index) throws QGException
      Throws:
      QGException
    • getValueForJSONKey

      protected String getValueForJSONKey(List<org.json.JSONObject> array, int index, String key) throws QGException
      Throws:
      QGException
    • getStatusFromJSONObject

      protected String getStatusFromJSONObject(org.json.JSONObject jsonObject) throws QGException
      Throws:
      QGException
    • createJSONArrayFromString

      protected org.json.JSONArray createJSONArrayFromString(String jsonString) throws QGException
      Throws:
      QGException
    • createJSONObjectFromString

      protected org.json.JSONObject createJSONObjectFromString(String jsonString) throws QGException
      Throws:
      QGException