Class HttpClientFactory
- java.lang.Object
-
- org.openstack4j.connectors.httpclient.HttpClientFactory
-
public class HttpClientFactory extends Object
Creates the initial HttpClient and keeps it as a singleton to preserve pooling strategies within the Http Client- Author:
- Jeremy Unruh
-
-
Field Summary
Fields Modifier and Type Field Description static HttpClientFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description HttpClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterInterceptor(HttpClientConfigInterceptor interceptor)Registers a HttpClientConfigInterceptor that is invoked prior to a new HttpClient being created.
-
-
-
Field Detail
-
INSTANCE
public static final HttpClientFactory INSTANCE
-
-
Method Detail
-
registerInterceptor
public static void registerInterceptor(HttpClientConfigInterceptor interceptor)
Registers a HttpClientConfigInterceptor that is invoked prior to a new HttpClient being created.- Parameters:
interceptor- the http config interceptor
-
-