Search in sources :

Example 1 with ListResponse

use of org.sonarqube.ws.Rules.ListResponse in project sonarqube by SonarSource.

the class DefaultRulesLoader method load.

@Override
public List<Rule> load() {
    GetRequest getRequest = new GetRequest(RULES_SEARCH_URL);
    ListResponse list = loadFromStream(wsClient.call(getRequest).contentStream());
    return list.getRulesList();
}
Also used : ListResponse(org.sonarqube.ws.Rules.ListResponse) GetRequest(org.sonarqube.ws.client.GetRequest)

Aggregations

ListResponse (org.sonarqube.ws.Rules.ListResponse)1 GetRequest (org.sonarqube.ws.client.GetRequest)1