org.sonar.wsclient
Class SonarClient.Builder

java.lang.Object
  extended by org.sonar.wsclient.SonarClient.Builder
Enclosing class:
SonarClient

public static class SonarClient.Builder
extends Object


Method Summary
 SonarClient build()
          Build a new client
 SonarClient.Builder connectTimeoutMilliseconds(int i)
          Sets a specified timeout value, in milliseconds, to be used when opening HTTP connection.
 SonarClient.Builder login(String login)
          Optional login, for example "admin"
 SonarClient.Builder password(String password)
          Optional password related to login(String), for example "admin"
 SonarClient.Builder proxy(String proxyHost, int proxyPort)
          Host and port of the optional HTTP proxy
 SonarClient.Builder proxyLogin(String proxyLogin)
           
 SonarClient.Builder proxyPassword(String proxyPassword)
           
 SonarClient.Builder readTimeoutMilliseconds(int i)
          Sets the read timeout to a specified timeout, in milliseconds.
 SonarClient.Builder url(String url)
          Mandatory HTTP server URL, eg "http://localhost:9000"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

url

public SonarClient.Builder url(String url)
Mandatory HTTP server URL, eg "http://localhost:9000"


login

public SonarClient.Builder login(@Nullable
                                 String login)
Optional login, for example "admin"


password

public SonarClient.Builder password(@Nullable
                                    String password)
Optional password related to login(String), for example "admin"


proxy

public SonarClient.Builder proxy(@Nullable
                                 String proxyHost,
                                 int proxyPort)
Host and port of the optional HTTP proxy


proxyLogin

public SonarClient.Builder proxyLogin(@Nullable
                                      String proxyLogin)

proxyPassword

public SonarClient.Builder proxyPassword(@Nullable
                                         String proxyPassword)

connectTimeoutMilliseconds

public SonarClient.Builder connectTimeoutMilliseconds(int i)
Sets a specified timeout value, in milliseconds, to be used when opening HTTP connection. A timeout of zero is interpreted as an infinite timeout. Default value is SonarClient.DEFAULT_CONNECT_TIMEOUT_MILLISECONDS


readTimeoutMilliseconds

public SonarClient.Builder readTimeoutMilliseconds(int i)
Sets the read timeout to a specified timeout, in milliseconds. A timeout of zero is interpreted as an infinite timeout. Default value is SonarClient.DEFAULT_READ_TIMEOUT_MILLISECONDS


build

public SonarClient build()
Build a new client



Copyright © 2009-2013 SonarSource. All Rights Reserved.