org.openid4java.util
Class HttpClientFactory
java.lang.Object
org.openid4java.util.HttpClientFactory
public class HttpClientFactory
- extends java.lang.Object
This class handles all HTTPClient connections for the
org.openid4java packages.
- Author:
- Kevin
Method Summary |
static org.apache.http.client.HttpClient |
getInstance(int maxRedirects,
java.lang.Boolean allowCircularRedirects,
int connTimeout,
int socketTimeout,
java.lang.String cookiePolicy)
|
static org.apache.http.client.HttpClient |
getInstance(int maxRedirects,
java.lang.Boolean allowCircularRedirects,
int connTimeout,
int socketTimeout,
java.lang.String cookiePolicy,
javax.net.ssl.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getProxyProperties
public static ProxyProperties getProxyProperties()
setProxyProperties
public static void setProxyProperties(ProxyProperties proxyProperties)
isMultiThreadedHttpClient
public static boolean isMultiThreadedHttpClient()
setMultiThreadedHttpClient
public static void setMultiThreadedHttpClient(boolean multiThreadedHttpClient)
- Configures the type of HttpClient's constructed by the factory.
- Parameters:
multiThreadedHttpClient
- if true, MultiThreadedHttpConnectionManager's are constructed;
if false - SimpleHttpConnectionManager's.
getInstance
public static org.apache.http.client.HttpClient getInstance(int maxRedirects,
java.lang.Boolean allowCircularRedirects,
int connTimeout,
int socketTimeout,
java.lang.String cookiePolicy)
getInstance
public static org.apache.http.client.HttpClient getInstance(int maxRedirects,
java.lang.Boolean allowCircularRedirects,
int connTimeout,
int socketTimeout,
java.lang.String cookiePolicy,
javax.net.ssl.SSLContext sslContext,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Copyright © 2012 Sxip. All Rights Reserved.