Package org.apache.http.client.config
Class RequestConfig.Builder
- java.lang.Object
-
- org.apache.http.client.config.RequestConfig.Builder
-
- Enclosing class:
- RequestConfig
public static class RequestConfig.Builder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
setExpectContinueEnabled
public RequestConfig.Builder setExpectContinueEnabled(boolean expectContinueEnabled)
-
setProxy
public RequestConfig.Builder setProxy(HttpHost proxy)
-
setLocalAddress
public RequestConfig.Builder setLocalAddress(java.net.InetAddress localAddress)
-
setStaleConnectionCheckEnabled
@Deprecated public RequestConfig.Builder setStaleConnectionCheckEnabled(boolean staleConnectionCheckEnabled)
Deprecated.
-
setCookieSpec
public RequestConfig.Builder setCookieSpec(java.lang.String cookieSpec)
-
setRedirectsEnabled
public RequestConfig.Builder setRedirectsEnabled(boolean redirectsEnabled)
-
setRelativeRedirectsAllowed
public RequestConfig.Builder setRelativeRedirectsAllowed(boolean relativeRedirectsAllowed)
-
setCircularRedirectsAllowed
public RequestConfig.Builder setCircularRedirectsAllowed(boolean circularRedirectsAllowed)
-
setMaxRedirects
public RequestConfig.Builder setMaxRedirects(int maxRedirects)
-
setAuthenticationEnabled
public RequestConfig.Builder setAuthenticationEnabled(boolean authenticationEnabled)
-
setTargetPreferredAuthSchemes
public RequestConfig.Builder setTargetPreferredAuthSchemes(java.util.Collection<java.lang.String> targetPreferredAuthSchemes)
-
setProxyPreferredAuthSchemes
public RequestConfig.Builder setProxyPreferredAuthSchemes(java.util.Collection<java.lang.String> proxyPreferredAuthSchemes)
-
setConnectionRequestTimeout
public RequestConfig.Builder setConnectionRequestTimeout(int connectionRequestTimeout)
-
setConnectTimeout
public RequestConfig.Builder setConnectTimeout(int connectTimeout)
-
setSocketTimeout
public RequestConfig.Builder setSocketTimeout(int socketTimeout)
-
setDecompressionEnabled
@Deprecated public RequestConfig.Builder setDecompressionEnabled(boolean decompressionEnabled)
Deprecated.(4.5) SetsetContentCompressionEnabled(boolean)
tofalse
and add theAccept-Encoding
request header.
-
setContentCompressionEnabled
public RequestConfig.Builder setContentCompressionEnabled(boolean contentCompressionEnabled)
-
setNormalizeUri
public RequestConfig.Builder setNormalizeUri(boolean normalizeUri)
-
build
public RequestConfig build()
-
-