public static class RequestConfig.Builder extends Object
public RequestConfig.Builder setExpectContinueEnabled(boolean expectContinueEnabled)
public RequestConfig.Builder setProxy(org.apache.http.HttpHost proxy)
public RequestConfig.Builder setLocalAddress(InetAddress localAddress)
@Deprecated public RequestConfig.Builder setStaleConnectionCheckEnabled(boolean staleConnectionCheckEnabled)
PoolingHttpClientConnectionManager.setValidateAfterInactivity(int)
public RequestConfig.Builder setCookieSpec(String cookieSpec)
public RequestConfig.Builder setRedirectsEnabled(boolean redirectsEnabled)
public RequestConfig.Builder setRelativeRedirectsAllowed(boolean relativeRedirectsAllowed)
public RequestConfig.Builder setCircularRedirectsAllowed(boolean circularRedirectsAllowed)
public RequestConfig.Builder setMaxRedirects(int maxRedirects)
public RequestConfig.Builder setAuthenticationEnabled(boolean authenticationEnabled)
public RequestConfig.Builder setTargetPreferredAuthSchemes(Collection<String> targetPreferredAuthSchemes)
public RequestConfig.Builder setProxyPreferredAuthSchemes(Collection<String> proxyPreferredAuthSchemes)
public RequestConfig.Builder setConnectionRequestTimeout(int connectionRequestTimeout)
public RequestConfig.Builder setConnectTimeout(int connectTimeout)
public RequestConfig.Builder setSocketTimeout(int socketTimeout)
@Deprecated public RequestConfig.Builder setDecompressionEnabled(boolean decompressionEnabled)
setContentCompressionEnabled(boolean)
to false
and
add the Accept-Encoding
request header.public RequestConfig.Builder setContentCompressionEnabled(boolean contentCompressionEnabled)
public RequestConfig.Builder setNormalizeUri(boolean normalizeUri)
public RequestConfig build()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.