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 Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setExpectContinueEnabled
public RequestConfig.Builder setExpectContinueEnabled(boolean expectContinueEnabled)
setProxy
public RequestConfig.Builder setProxy(HttpHost proxy)
setLocalAddress
public RequestConfig.Builder setLocalAddress(InetAddress localAddress)
setStaleConnectionCheckEnabled
public RequestConfig.Builder setStaleConnectionCheckEnabled(boolean staleConnectionCheckEnabled)
setCookieSpec
public RequestConfig.Builder setCookieSpec(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(Collection<String> targetPreferredAuthSchemes)
setProxyPreferredAuthSchemes
public RequestConfig.Builder setProxyPreferredAuthSchemes(Collection<String> proxyPreferredAuthSchemes)
setConnectionRequestTimeout
public RequestConfig.Builder setConnectionRequestTimeout(int connectionRequestTimeout)
setConnectTimeout
public RequestConfig.Builder setConnectTimeout(int connectTimeout)
setSocketTimeout
public RequestConfig.Builder setSocketTimeout(int socketTimeout)
build
public RequestConfig build()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.