Class HttpClientBuilder


  • public class HttpClientBuilder
    extends org.apache.http.impl.client.HttpClientBuilder
    Wraps and overrides some of org.apache.http.impl.client.HttpClientBuilder's methods. Will build a TracedHttpClient wrapping the usual CloseableHttpClient result. Uses the global recorder by default, with an option to provide an alternative.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected HttpClientBuilder()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.impl.client.CloseableHttpClient build()  
      static HttpClientBuilder create()  
      HttpClientBuilder setRecorder​(AWSXRayRecorder recorder)  
      • Methods inherited from class org.apache.http.impl.client.HttpClientBuilder

        addCloseable, addInterceptorFirst, addInterceptorFirst, addInterceptorLast, addInterceptorLast, createMainExec, decorateMainExec, decorateProtocolExec, disableAuthCaching, disableAutomaticRetries, disableConnectionState, disableContentCompression, disableCookieManagement, disableDefaultUserAgent, disableRedirectHandling, evictExpiredConnections, evictIdleConnections, evictIdleConnections, setBackoffManager, setConnectionBackoffStrategy, setConnectionManager, setConnectionManagerShared, setConnectionReuseStrategy, setConnectionTimeToLive, setContentDecoderRegistry, setDefaultAuthSchemeRegistry, setDefaultConnectionConfig, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setDefaultSocketConfig, setDnsResolver, setHostnameVerifier, setHttpProcessor, setKeepAliveStrategy, setMaxConnPerRoute, setMaxConnTotal, setProxy, setProxyAuthenticationStrategy, setPublicSuffixMatcher, setRedirectStrategy, setRequestExecutor, setRetryHandler, setRoutePlanner, setSchemePortResolver, setServiceUnavailableRetryStrategy, setSslcontext, setSSLContext, setSSLHostnameVerifier, setSSLSocketFactory, setTargetAuthenticationStrategy, setUserAgent, setUserTokenHandler, useSystemProperties
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpClientBuilder

        protected HttpClientBuilder()
    • Method Detail

      • build

        public org.apache.http.impl.client.CloseableHttpClient build()
        Overrides:
        build in class org.apache.http.impl.client.HttpClientBuilder