Class HttpClientBuilder

java.lang.Object
org.apache.http.impl.client.HttpClientBuilder
com.amazonaws.xray.proxies.apache.http.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

    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 Details

    • HttpClientBuilder

      protected HttpClientBuilder()
  • Method Details

    • create

      public static HttpClientBuilder create()
    • setRecorder

      public HttpClientBuilder setRecorder​(AWSXRayRecorder recorder)
    • build

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