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.HttpClientBuilderWraps and overrides some oforg.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 protectedHttpClientBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.impl.client.CloseableHttpClientbuild()static HttpClientBuildercreate()HttpClientBuildersetRecorder(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
-
-
-
-
Method Detail
-
create
public static HttpClientBuilder create()
-
setRecorder
public HttpClientBuilder setRecorder(AWSXRayRecorder recorder)
-
build
public org.apache.http.impl.client.CloseableHttpClient build()
- Overrides:
buildin classorg.apache.http.impl.client.HttpClientBuilder
-
-