public static final class IdeHttpClientHelpers.ApacheHttpClient4
extends java.lang.Object
Constructor and Description |
---|
ApacheHttpClient4() |
Modifier and Type | Method and Description |
---|---|
static void |
setProxyCredentialsForUrlIfEnabled(CredentialsProvider provider,
java.lang.String url)
Install credentials for IDE-wide proxy if usage of proxy was enabled AND host of the given url was not added to exclude list
in
HttpConfigurable . |
static void |
setProxyCredentialsIfEnabled(CredentialsProvider provider)
Install credentials for IDE-wide proxy if usage of proxy and proxy authentication were enabled in
HttpConfigurable . |
static void |
setProxyForUrlIfEnabled(RequestConfig.Builder builder,
java.lang.String url)
Install headers for IDE-wide proxy if usage of proxy was enabled AND host of the given url was not added to exclude list
in
HttpConfigurable . |
static void |
setProxyIfEnabled(RequestConfig.Builder builder)
Install headers for IDE-wide proxy if usage of proxy was enabled in
HttpConfigurable . |
public static void setProxyIfEnabled(RequestConfig.Builder builder)
HttpConfigurable
.builder
- HttpClient's request builder used to configure new clientsetProxyForUrlIfEnabled(RequestConfig.Builder, String)
public static void setProxyCredentialsIfEnabled(CredentialsProvider provider)
HttpConfigurable
.provider
- HttpClient's credentials provider used to configure new clientsetProxyCredentialsForUrlIfEnabled(CredentialsProvider, String)
public static void setProxyForUrlIfEnabled(RequestConfig.Builder builder, java.lang.String url)
HttpConfigurable
.builder
- HttpClient's request builder used to configure new clienturl
- URL to access (only host part is checked)public static void setProxyCredentialsForUrlIfEnabled(CredentialsProvider provider, java.lang.String url)
HttpConfigurable
.provider
- HttpClient's credentials provider used to configure new clienturl
- URL to access (only host part is checked)