public class HttpClientUtils extends Object
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 HttpClient.Factory |
getHttpClientFactory() |
public static Map<String,Interceptor> createApplicableInterceptors(Config config, HttpClient.Factory factory)
@Deprecated public static HttpClient createHttpClient(Config config)
public static HttpClient.Factory getHttpClientFactory()
public static void applyCommonConfiguration(Config config, HttpClient.Builder builder, HttpClient.Factory factory)
Copyright © 2015–2024 Red Hat. All rights reserved.