public class HttpClientUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.impl.client.CloseableHttpClient |
getClient(String[] supportedProtocols,
Properties properties,
String... prefixes)
Gets client.
|
static org.apache.http.config.SocketConfig |
getConfiguredSocketConfig(Properties properties,
String[] prefixes)
Gets configured socket config.
|
static org.apache.http.config.SocketConfig.Builder |
getSocketConfigBuilder(Properties p,
String[] prefixes)
Gets socket config builder.
|
public static org.apache.http.impl.client.CloseableHttpClient getClient(String[] supportedProtocols, Properties properties, String... prefixes)
supportedProtocols - the supported protocolsproperties - the propertiesprefixes - the prefixespublic static org.apache.http.config.SocketConfig getConfiguredSocketConfig(Properties properties, String[] prefixes)
properties - the propertiesprefixes - the prefixespublic static org.apache.http.config.SocketConfig.Builder getSocketConfigBuilder(Properties p, String[] prefixes)
p - the pprefixes - the prefixesCopyright © 2019. All rights reserved.