public class HttpClientFactory extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.http.client.HttpClient |
getInstance(int maxRedirects,
Boolean allowCircularRedirects,
int connTimeout,
int socketTimeout,
String cookiePolicy) |
static org.apache.http.client.HttpClient |
getInstance(int maxRedirects,
Boolean allowCircularRedirects,
int connTimeout,
int socketTimeout,
String cookiePolicy,
SSLContext sslContext,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier) |
static ProxyProperties |
getProxyProperties() |
static boolean |
isMultiThreadedHttpClient() |
static void |
setMultiThreadedHttpClient(boolean multiThreadedHttpClient)
Configures the type of HttpClient's constructed by the factory.
|
static void |
setProxyProperties(ProxyProperties proxyProperties) |
public static ProxyProperties getProxyProperties()
public static void setProxyProperties(ProxyProperties proxyProperties)
public static boolean isMultiThreadedHttpClient()
public static void setMultiThreadedHttpClient(boolean multiThreadedHttpClient)
multiThreadedHttpClient
- if true, MultiThreadedHttpConnectionManager's are constructed;
if false - SimpleHttpConnectionManager's.public static org.apache.http.client.HttpClient getInstance(int maxRedirects, Boolean allowCircularRedirects, int connTimeout, int socketTimeout, String cookiePolicy)
public static org.apache.http.client.HttpClient getInstance(int maxRedirects, Boolean allowCircularRedirects, int connTimeout, int socketTimeout, String cookiePolicy, SSLContext sslContext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Copyright © 2015 Sxip. All rights reserved.