org.sonar.wsclient
Class SonarClient

java.lang.Object
  extended by org.sonar.wsclient.SonarClient

public class SonarClient
extends Object

Entry point of the Java Client for Sonar Web Services. It does not support all web services yet.

Example:

   SonarClient client = SonarClient.create("http://localhost:9000");
   IssueClient issueClient = client.issueClient();
 

Since:
3.6

Nested Class Summary
static class SonarClient.Builder
           
 
Field Summary
static int DEFAULT_CONNECT_TIMEOUT_MILLISECONDS
           
static int DEFAULT_READ_TIMEOUT_MILLISECONDS
           
 
Method Summary
 ActionPlanClient actionPlanClient()
          New client to interact with web services related to issue action plans
static SonarClient.Builder builder()
          Create a builder of SonarClients.
static SonarClient create(String serverUrl)
          Create a client with default configuration.
 IssueClient issueClient()
          New client to interact with web services related to issues
 PermissionClient permissionClient()
          New client to interact with web services related to users and groups permissions
 ProjectClient projectClient()
          New client to interact with web services related to projects
 QualityGateClient qualityGateClient()
          New client to interact with web services related to quality gates
 RuleClient ruleClient()
          New client to interact with web services related to rules
 RuleTagClient ruleTagClient()
          New client to interact with web services related to rule tags
 SystemClient systemClient()
           
 UserClient userClient()
          New client to interact with web services related to users
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONNECT_TIMEOUT_MILLISECONDS

public static final int DEFAULT_CONNECT_TIMEOUT_MILLISECONDS
See Also:
Constant Field Values

DEFAULT_READ_TIMEOUT_MILLISECONDS

public static final int DEFAULT_READ_TIMEOUT_MILLISECONDS
See Also:
Constant Field Values
Method Detail

issueClient

public IssueClient issueClient()
New client to interact with web services related to issues


actionPlanClient

public ActionPlanClient actionPlanClient()
New client to interact with web services related to issue action plans


userClient

public UserClient userClient()
New client to interact with web services related to users


permissionClient

public PermissionClient permissionClient()
New client to interact with web services related to users and groups permissions


projectClient

public ProjectClient projectClient()
New client to interact with web services related to projects


ruleTagClient

public RuleTagClient ruleTagClient()
New client to interact with web services related to rule tags


ruleClient

public RuleClient ruleClient()
New client to interact with web services related to rules


qualityGateClient

public QualityGateClient qualityGateClient()
New client to interact with web services related to quality gates


systemClient

public SystemClient systemClient()

builder

public static SonarClient.Builder builder()
Create a builder of SonarClients.


create

public static SonarClient create(String serverUrl)
Create a client with default configuration. Use builder() to define a custom configuration (credentials, HTTP proxy, HTTP timeouts).



Copyright © 2009-2014 SonarSource. All Rights Reserved.