| 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() |
org.apache.hc.core5.util.Timeout |
getConnectionRequestTimeout()
Returns the timeout in milliseconds used when requesting a connection
from the connection manager.
|
org.apache.hc.core5.util.Timeout |
getConnectionTimeout()
Determines the timeout in milliseconds until a new connection is
fully established or established connection transmits a data packet.
|
String |
getCookieSpec()
Determines the name of the cookie specification to be used for HTTP state
management.
|
int |
getMaxRedirects()
Returns the maximum number of redirects to be followed.
|
org.apache.hc.core5.http.HttpHost |
getProxy()
Returns HTTP proxy to be used for request execution.
|
Collection<String> |
getProxyPreferredAuthSchemes()
Determines the order of preference for supported authentication schemes
when authenticating with the proxy host.
|
Collection<String> |
getTargetPreferredAuthSchemes()
Determines the order of preference for supported authentication schemes
when authenticating with the target host.
|
boolean |
isAuthenticationEnabled()
Determines whether authentication should be handled automatically.
|
boolean |
isCircularRedirectsAllowed()
Determines whether circular redirects (redirects to the same location) should
be allowed.
|
boolean |
isContentCompressionEnabled()
Determines whether the target server is requested to compress content.
|
boolean |
isExpectContinueEnabled()
Determines whether the 'Expect: 100-Continue' handshake is enabled
for entity enclosing methods.
|
boolean |
isRedirectsEnabled()
Determines whether redirects should be handled automatically.
|
String |
toString() |
public static final RequestConfig DEFAULT
public boolean isExpectContinueEnabled()
The use of the 'Expect: 100-continue' handshake can result in a noticeable performance improvement for entity enclosing requests (such as POST and PUT) that require the target server's authentication.
'Expect: 100-continue' handshake should be used with caution, as it may cause problems with HTTP servers and proxies that do not support HTTP/1.1 protocol.
Default: false
public org.apache.hc.core5.http.HttpHost getProxy()
Default: null
public String getCookieSpec()
Default: null
public boolean isRedirectsEnabled()
Default: true
public boolean isCircularRedirectsAllowed()
Default: false
public int getMaxRedirects()
Default: 50
public boolean isAuthenticationEnabled()
Default: true
public Collection<String> getTargetPreferredAuthSchemes()
Default: null
public Collection<String> getProxyPreferredAuthSchemes()
Default: null
public org.apache.hc.core5.util.Timeout getConnectionRequestTimeout()
A timeout value of zero is interpreted as an infinite timeout. A negative value is interpreted as undefined (system default).
Default: 3 minutes.
public org.apache.hc.core5.util.Timeout getConnectionTimeout()
A timeout value of zero is interpreted as an infinite timeout. A negative value is interpreted as undefined (system default).
Default: 3 minutes
public boolean isContentCompressionEnabled()
Default: true
protected RequestConfig clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic static RequestConfig.Builder custom()
public static RequestConfig.Builder copy(RequestConfig config)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.