public class SonarClient extends Object
Constructor and Description |
---|
SonarClient() |
SonarClient(org.apache.http.client.HttpClient client) |
SonarClient(org.apache.http.client.HttpClient client,
String sonarHost) |
SonarClient(org.apache.http.client.HttpClient client,
String sonarHost,
int sonarPort) |
Modifier and Type | Method and Description |
---|---|
Coverage |
getCoverageForProject(String projectKey)
Fetches the coverage statistics for a given sonar project
|
List<SonarProject> |
listProjects()
Fetches a list of sonar projects
|
public SonarClient()
public SonarClient(org.apache.http.client.HttpClient client)
public SonarClient(org.apache.http.client.HttpClient client, String sonarHost)
public SonarClient(org.apache.http.client.HttpClient client, String sonarHost, int sonarPort)
public List<SonarProject> listProjects() throws IOException
IOException
public Coverage getCoverageForProject(String projectKey) throws SonarException
projectKey
- The key identifier for the sonar projectSonarException
Copyright © 2016–2021. All rights reserved.