public class HttpConnector extends Object implements WsConnector
TLS 1.0, 1.1 and 1.2 are supported on both Java 7 and 8. SSLv3 is not supported.
The JVM system proxies are used.
Modifier and Type | Class and Description |
---|---|
static class |
HttpConnector.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECT_TIMEOUT_MILLISECONDS |
static int |
DEFAULT_READ_TIMEOUT_MILLISECONDS |
Modifier and Type | Method and Description |
---|---|
String |
baseUrl()
Server base URL, always with trailing slash, for instance "http://localhost:9000/"
|
WsResponse |
call(WsRequest httpRequest) |
static HttpConnector.Builder |
newBuilder() |
com.squareup.okhttp.OkHttpClient |
okHttpClient() |
String |
userAgent() |
public static final int DEFAULT_CONNECT_TIMEOUT_MILLISECONDS
public static final int DEFAULT_READ_TIMEOUT_MILLISECONDS
public String baseUrl()
WsConnector
baseUrl
in interface WsConnector
@CheckForNull public String userAgent()
public com.squareup.okhttp.OkHttpClient okHttpClient()
public WsResponse call(WsRequest httpRequest)
call
in interface WsConnector
public static HttpConnector.Builder newBuilder()
Copyright © 2009–2016 SonarSource. All rights reserved.