public class HttpClientUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BACKWARDS_COMPATIBILITY_DISABLE_DEFAULT |
static String |
HEADER_INTERCEPTOR |
static String |
ipv4Pattern |
protected static String |
KUBERNETES_BACKWARDS_COMPATIBILITY_INTERCEPTOR_DISABLE |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyCommonConfiguration(Config config,
HttpClient.Builder builder,
HttpClient.Factory factory) |
static String |
basicCredentials(String username,
String password) |
static Map<String,Interceptor> |
createApplicableInterceptors(Config config,
HttpClient.Factory factory) |
static HttpClient |
createHttpClient(Config config)
Deprecated.
you should not need to call this method directly. Please create your own HttpClient.Factory
should you need to customize your clients.
|
static URL |
getProxyUrl(Config config) |
public static final String HEADER_INTERCEPTOR
public static final String ipv4Pattern
protected static final String KUBERNETES_BACKWARDS_COMPATIBILITY_INTERCEPTOR_DISABLE
protected static final String BACKWARDS_COMPATIBILITY_DISABLE_DEFAULT
public static URL getProxyUrl(Config config) throws MalformedURLException
MalformedURLExceptionpublic static Map<String,Interceptor> createApplicableInterceptors(Config config, HttpClient.Factory factory)
@Deprecated public static HttpClient createHttpClient(Config config)
public static void applyCommonConfiguration(Config config, HttpClient.Builder builder, HttpClient.Factory factory)
Copyright © 2015–2022 Red Hat. All rights reserved.