Class 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
    • Constructor Detail

      • HttpClientFactory

        public HttpClientFactory()
    • 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