public class ProxyUtils extends Object
Constructor and Description |
---|
ProxyUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
setupBasicProxyAuth(org.apache.http.impl.client.HttpClientBuilder builder,
org.apache.http.auth.AuthScope authScope,
String proxyUser,
String proxyPassword)
This method sets up the proxy authentication using the basic mechanism credentials provided
into the http client builder.
|
static void |
setupNegotiateProxyAuth(org.apache.http.impl.client.HttpClientBuilder builder,
org.apache.http.auth.AuthScope authScope)
This method sets up the proxy authentication using the negotiate mechanism in the http client
builder.
|
static void |
setupProxy(ProxyConfig config,
org.apache.http.impl.client.HttpClientBuilder builder)
Setup the proxy configuration in the http client builder.
|
static void |
setupProxyAuth(String proxyHost,
Integer proxyPort,
ProxyConfig.ProxyAuthType proxyAuthType,
String proxyUser,
String proxyPassword,
org.apache.http.impl.client.HttpClientBuilder builder)
This method sets up the proxy authentication in the http client builder.
|
public static void setupProxy(ProxyConfig config, org.apache.http.impl.client.HttpClientBuilder builder)
config
- the proxy configurationbuilder
- the http client builderpublic static void setupProxyAuth(String proxyHost, Integer proxyPort, ProxyConfig.ProxyAuthType proxyAuthType, String proxyUser, String proxyPassword, org.apache.http.impl.client.HttpClientBuilder builder)
proxyHost
- the proxy hostproxyPort
- the proxy portproxyAuthType
- the proxy authentication typeproxyUser
- the proxy userproxyPassword
- the proxy passwordbuilder
- the http client builderpublic static void setupNegotiateProxyAuth(org.apache.http.impl.client.HttpClientBuilder builder, org.apache.http.auth.AuthScope authScope)
builder
- the http client builderauthScope
- the authentication scopepublic static void setupBasicProxyAuth(org.apache.http.impl.client.HttpClientBuilder builder, org.apache.http.auth.AuthScope authScope, String proxyUser, String proxyPassword)
builder
- the http client builderauthScope
- the authentication scopeproxyUser
- the proxy userproxyPassword
- the proxy passwordCopyright © 2024. All rights reserved.