Example usage for Java org.apache.http.impl.client HttpClientBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
HttpClientBuilder | addInterceptorFirst(final HttpResponseInterceptor itcp) Adds this protocol interceptor to the head of the protocol processing list. |
HttpClientBuilder | addInterceptorFirst(final HttpRequestInterceptor itcp) Adds this protocol interceptor to the head of the protocol processing list. |
HttpClientBuilder | addInterceptorLast(final HttpResponseInterceptor itcp) Adds this protocol interceptor to the tail of the protocol processing list. |
HttpClientBuilder | addInterceptorLast(final HttpRequestInterceptor itcp) Adds this protocol interceptor to the tail of the protocol processing list. |
CloseableHttpClient | build() |
HttpClientBuilder | create() |
HttpClientBuilder | disableAuthCaching() Disables authentication scheme caching. |
HttpClientBuilder | disableAutomaticRetries() Disables automatic request recovery and re-execution. |
HttpClientBuilder | disableContentCompression() Disables automatic content decompression. |
HttpClientBuilder | disableCookieManagement() Disables state (cookie) management. |
HttpClientBuilder | disableRedirectHandling() Disables automatic redirect handling. |
HttpClientBuilder | setConnectionManager(final HttpClientConnectionManager connManager) Assigns HttpClientConnectionManager instance. |
HttpClientBuilder | setConnectionReuseStrategy(final ConnectionReuseStrategy reuseStrategy) Assigns ConnectionReuseStrategy instance. |
HttpClientBuilder | setDefaultAuthSchemeRegistry( final Lookup Assigns default org.apache.http.auth.AuthScheme registry which will be used for request execution if not explicitly set in the client execution context. |
HttpClientBuilder | setDefaultConnectionConfig(final ConnectionConfig config) Assigns default ConnectionConfig . |
HttpClientBuilder | setDefaultCookieSpecRegistry( final Lookup Assigns default org.apache.http.cookie.CookieSpec registry which will be used for request execution if not explicitly set in the client execution context. |
HttpClientBuilder | setDefaultCookieStore(final CookieStore cookieStore) Assigns default CookieStore instance which will be used for request execution if not explicitly set in the client execution context. |
HttpClientBuilder | setDefaultCredentialsProvider(final CredentialsProvider credentialsProvider) Assigns default CredentialsProvider instance which will be used for request execution if not explicitly set in the client execution context. |
HttpClientBuilder | setDefaultHeaders(final Collection extends Header> defaultHeaders) Assigns default request header values. |
HttpClientBuilder | setDefaultRequestConfig(final RequestConfig config) Assigns default RequestConfig instance which will be used for request execution if not explicitly set in the client execution context. |
HttpClientBuilder | setDefaultSocketConfig(final SocketConfig config) Assigns default SocketConfig . |
HttpClientBuilder | setHostnameVerifier(final X509HostnameVerifier hostnameVerifier) Assigns X509HostnameVerifier instance. |
HttpClientBuilder | setHttpProcessor(final HttpProcessor httpprocessor) Assigns HttpProcessor instance. |
HttpClientBuilder | setKeepAliveStrategy(final ConnectionKeepAliveStrategy keepAliveStrategy) Assigns ConnectionKeepAliveStrategy instance. |
HttpClientBuilder | setMaxConnPerRoute(final int maxConnPerRoute) Assigns maximum connection per route value. |
HttpClientBuilder | setMaxConnTotal(final int maxConnTotal) Assigns maximum total connection value. |
HttpClientBuilder | setProxy(final HttpHost proxy) Assigns default proxy value. |
HttpClientBuilder | setProxyAuthenticationStrategy(final AuthenticationStrategy proxyAuthStrategy) Assigns AuthenticationStrategy instance for target host authentication. |
HttpClientBuilder | setRedirectStrategy(final RedirectStrategy redirectStrategy) Assigns RedirectStrategy instance. |
HttpClientBuilder | setRequestExecutor(final HttpRequestExecutor requestExec) Assigns HttpRequestExecutor instance. |
HttpClientBuilder | setRetryHandler(final HttpRequestRetryHandler retryHandler) Assigns HttpRequestRetryHandler instance. |
HttpClientBuilder | setRoutePlanner(final HttpRoutePlanner routePlanner) Assigns HttpRoutePlanner instance. |
HttpClientBuilder | setSchemePortResolver(final SchemePortResolver schemePortResolver) Assigns SchemePortResolver instance. |
HttpClientBuilder | setServiceUnavailableRetryStrategy( final ServiceUnavailableRetryStrategy serviceUnavailStrategy) Assigns ServiceUnavailableRetryStrategy instance. |
HttpClientBuilder | setSslcontext(final SSLContext sslcontext) Assigns SSLContext instance. |
HttpClientBuilder | setSSLSocketFactory(final LayeredConnectionSocketFactory sslSocketFactory) Assigns LayeredConnectionSocketFactory instance. |
HttpClientBuilder | setTargetAuthenticationStrategy( final AuthenticationStrategy targetAuthStrategy) Assigns AuthenticationStrategy instance for proxy authentication. |
HttpClientBuilder | setUserAgent(final String userAgent) Assigns User-Agent value. |
HttpClientBuilder | useSystemProperties() Use system properties when creating and configuring default implementations. |