Package org.sonarqube.ws.client
Class HttpConnector.Builder
java.lang.Object
org.sonarqube.ws.client.HttpConnector.Builder
- Enclosing class:
- HttpConnector
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
connectTimeoutMilliseconds
(int i) Sets a specified timeout value, in milliseconds, to be used when opening HTTP connection.credentials
(String login, String password) Optional login/password, for example "admin"proxyCredentials
(String proxyLogin, String proxyPassword) readTimeoutMilliseconds
(int i) Sets the read timeout to a specified timeout, in milliseconds.setSSLSocketFactory
(SSLSocketFactory sslSocketFactory) Optional SSL socket factory with which SSL sockets will be created to establish SSL connections.setTrustManager
(X509TrustManager sslTrustManager) Optional SSL trust manager used to validate certificates.systemPassCode
(String systemPassCode) Optional access token, for example"ABCDE"
.Mandatory HTTP server URL, eg "http://localhost:9000"Optional User Agent
-
Method Details
-
userAgent
Optional User Agent -
url
Mandatory HTTP server URL, eg "http://localhost:9000" -
credentials
Optional login/password, for example "admin" -
token
Optional access token, for example"ABCDE"
. Alternative tocredentials(String, String)
-
connectTimeoutMilliseconds
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 isHttpConnector.DEFAULT_CONNECT_TIMEOUT_MILLISECONDS
-
setSSLSocketFactory
Optional SSL socket factory with which SSL sockets will be created to establish SSL connections. If not set, a default SSL socket factory will be used, base d on the JVM's default key store. -
setTrustManager
Optional SSL trust manager used to validate certificates. If not set, a default system trust manager will be used, based on the JVM's default truststore. -
readTimeoutMilliseconds
Sets the read timeout to a specified timeout, in milliseconds. A timeout of zero is interpreted as an infinite timeout. Default value isHttpConnector.DEFAULT_READ_TIMEOUT_MILLISECONDS
-
proxy
-
proxyCredentials
public HttpConnector.Builder proxyCredentials(@Nullable String proxyLogin, @Nullable String proxyPassword) -
systemPassCode
-
build
-