Modifier and Type | Class and Description |
---|---|
static class |
RequestConfig.Builder |
Modifier and Type | Field and Description |
---|---|
static RequestConfig |
DEFAULT |
Modifier | Constructor and Description |
---|---|
protected |
RequestConfig()
Intended for CDI compatibility
|
Modifier and Type | Method and Description |
---|---|
protected RequestConfig |
clone() |
static RequestConfig.Builder |
copy(RequestConfig config) |
static RequestConfig.Builder |
custom() |
TimeValue |
getConnectionKeepAlive() |
Timeout |
getConnectionRequestTimeout() |
Timeout |
getConnectTimeout()
Deprecated.
|
String |
getCookieSpec() |
int |
getMaxRedirects() |
HttpHost |
getProxy()
Deprecated.
Use
DefaultProxyRoutePlanner
or a custom HttpRoutePlanner . |
Collection<String> |
getProxyPreferredAuthSchemes() |
Timeout |
getResponseTimeout() |
Collection<String> |
getTargetPreferredAuthSchemes() |
boolean |
isAuthenticationEnabled() |
boolean |
isCircularRedirectsAllowed() |
boolean |
isContentCompressionEnabled() |
boolean |
isExpectContinueEnabled() |
boolean |
isHardCancellationEnabled() |
boolean |
isRedirectsEnabled() |
String |
toString() |
public static final RequestConfig DEFAULT
public boolean isExpectContinueEnabled()
@Deprecated public HttpHost getProxy()
DefaultProxyRoutePlanner
or a custom HttpRoutePlanner
.RequestConfig.Builder.setProxy(HttpHost)
public String getCookieSpec()
public boolean isRedirectsEnabled()
public boolean isCircularRedirectsAllowed()
public int getMaxRedirects()
public boolean isAuthenticationEnabled()
public Collection<String> getTargetPreferredAuthSchemes()
public Collection<String> getProxyPreferredAuthSchemes()
public Timeout getConnectionRequestTimeout()
@Deprecated public Timeout getConnectTimeout()
ConnectionConfig.getConnectTimeout()
.public Timeout getResponseTimeout()
public TimeValue getConnectionKeepAlive()
public boolean isContentCompressionEnabled()
public boolean isHardCancellationEnabled()
protected RequestConfig clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static RequestConfig.Builder custom()
public static RequestConfig.Builder copy(RequestConfig config)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.