| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final TimeValue | |
| private final Timeout | |
| private final Timeout | |
| private final boolean | |
| private final String | |
| public static final RequestConfig | |
| private static final TimeValue | |
| private static final Timeout | |
| private final boolean | |
| private final boolean | |
| private final int | |
| private final HttpHost | |
| private final Collection | |
| private final boolean | |
| private final Timeout | |
| private final Collection |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv | RequestConfig(final boolean expectContinueEnabled, final HttpHost proxy, final String cookieSpec, final boolean redirectsEnabled, final boolean circularRedirectsAllowed, final int maxRedirects, final boolean authenticationEnabled, final Collection<String> targetPreferredAuthSchemes, final Collection<String> proxyPreferredAuthSchemes, final Timeout connectionRequestTimeout, final Timeout connectTimeout, final Timeout responseTimeout, final TimeValue connectionKeepAlive, final boolean contentCompressionEnabled, final boolean hardCancellationEnabled)
|
| Modifier and Type | Method and Description |
|---|---|
| protected RequestConfig | |
| public static RequestConfig. | |
| public static RequestConfig. | |
| public TimeValue | |
| public Timeout | |
| public Timeout | |
| public String | |
| public int | |
| public HttpHost | getProxy()
Deprecated
Use
org.
or a custom org..
|
| public Collection | |
| public Timeout | |
| public Collection | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String |
| authenticationEnabled | back to summary |
|---|---|
| private final boolean authenticationEnabled | |
| circularRedirectsAllowed | back to summary |
|---|---|
| private final boolean circularRedirectsAllowed | |
| connectionKeepAlive | back to summary |
|---|---|
| private final TimeValue connectionKeepAlive | |
| connectionRequestTimeout | back to summary |
|---|---|
| private final Timeout connectionRequestTimeout | |
| connectTimeout | back to summary |
|---|---|
| private final Timeout connectTimeout | |
| contentCompressionEnabled | back to summary |
|---|---|
| private final boolean contentCompressionEnabled | |
| cookieSpec | back to summary |
|---|---|
| private final String cookieSpec | |
| DEFAULT | back to summary |
|---|---|
| public static final RequestConfig DEFAULT | |
| DEFAULT_CONN_KEEP_ALIVE | back to summary |
|---|---|
| private static final TimeValue DEFAULT_CONN_KEEP_ALIVE | |
| DEFAULT_CONNECTION_REQUEST_TIMEOUT | back to summary |
|---|---|
| private static final Timeout DEFAULT_CONNECTION_REQUEST_TIMEOUT | |
| expectContinueEnabled | back to summary |
|---|---|
| private final boolean expectContinueEnabled | |
| hardCancellationEnabled | back to summary |
|---|---|
| private final boolean hardCancellationEnabled | |
| maxRedirects | back to summary |
|---|---|
| private final int maxRedirects | |
| proxy | back to summary |
|---|---|
| private final HttpHost proxy | |
| proxyPreferredAuthSchemes | back to summary |
|---|---|
| private final Collection<String> proxyPreferredAuthSchemes | |
| redirectsEnabled | back to summary |
|---|---|
| private final boolean redirectsEnabled | |
| responseTimeout | back to summary |
|---|---|
| private final Timeout responseTimeout | |
| targetPreferredAuthSchemes | back to summary |
|---|---|
| private final Collection<String> targetPreferredAuthSchemes | |
| RequestConfig | back to summary |
|---|---|
| protected RequestConfig() Intended for CDI compatibility | |
| RequestConfig | back to summary |
|---|---|
| pack-priv RequestConfig(final boolean expectContinueEnabled, final HttpHost proxy, final String cookieSpec, final boolean redirectsEnabled, final boolean circularRedirectsAllowed, final int maxRedirects, final boolean authenticationEnabled, final Collection<String> targetPreferredAuthSchemes, final Collection<String> proxyPreferredAuthSchemes, final Timeout connectionRequestTimeout, final Timeout connectTimeout, final Timeout responseTimeout, final TimeValue connectionKeepAlive, final boolean contentCompressionEnabled, final boolean hardCancellationEnabled) | |
| clone | back to summary |
|---|---|
| protected RequestConfig clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| copy | back to summary |
|---|---|
public static RequestConfig.
| |
| custom | back to summary |
|---|---|
| public static RequestConfig. | |
| getConnectionKeepAlive | back to summary |
|---|---|
| public TimeValue getConnectionKeepAlive() | |
| getConnectionRequestTimeout | back to summary |
|---|---|
| public Timeout getConnectionRequestTimeout() | |
| getConnectTimeout | back to summary |
|---|---|
| public Timeout getConnectTimeout()
Deprecated
| |
| getCookieSpec | back to summary |
|---|---|
public String getCookieSpec()
| |
| getMaxRedirects | back to summary |
|---|---|
public int getMaxRedirects()
| |
| getProxy | back to summary |
|---|---|
| public HttpHost getProxy()
Deprecated Use
| |
| getProxyPreferredAuthSchemes | back to summary |
|---|---|
| public Collection | |
| getResponseTimeout | back to summary |
|---|---|
public Timeout getResponseTimeout()
| |
| getTargetPreferredAuthSchemes | back to summary |
|---|---|
| public Collection | |
| isAuthenticationEnabled | back to summary |
|---|---|
| public boolean isAuthenticationEnabled() | |
| isCircularRedirectsAllowed | back to summary |
|---|---|
| public boolean isCircularRedirectsAllowed() | |
| isContentCompressionEnabled | back to summary |
|---|---|
| public boolean isContentCompressionEnabled() | |
| isExpectContinueEnabled | back to summary |
|---|---|
| public boolean isExpectContinueEnabled() | |
| isHardCancellationEnabled | back to summary |
|---|---|
| public boolean isHardCancellationEnabled() | |
| isRedirectsEnabled | back to summary |
|---|---|
public boolean isRedirectsEnabled()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private TimeValue | |
| private Timeout | |
| private Timeout | |
| private boolean | |
| private String | |
| private boolean | |
| private boolean | |
| private int | |
| private HttpHost | |
| private Collection | |
| private boolean | |
| private Timeout | |
| private Collection |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public RequestConfig | |
| public RequestConfig. | setAuthenticationEnabled(final boolean authenticationEnabled)
Determines whether authentication should be handled automatically. |
| public RequestConfig. | setCircularRedirectsAllowed(final boolean circularRedirectsAllowed)
Determines whether circular redirects (redirects to the same location) should be allowed. |
| public RequestConfig. | setConnectionKeepAlive(final TimeValue connectionKeepAlive)
Determines the default of value of connection keep-alive time period when not
explicitly communicated by the origin server with a |
| public RequestConfig. | setConnectionRequestTimeout(final Timeout connectionRequestTimeout)
Returns the connection lease request timeout used when requesting a connection from the connection manager. |
| public RequestConfig. | |
| public RequestConfig. | setConnectTimeout(final Timeout connectTimeout)
Deprecated
Use
Determines the timeout until a new connection is fully established.
ConnectionConfig..
|
| public RequestConfig. | setConnectTimeout(final long connectTimeout, final TimeUnit timeUnit)
Deprecated
Use
ConnectionConfig..
|
| public RequestConfig. | setContentCompressionEnabled(final boolean contentCompressionEnabled)
Determines whether the target server is requested to compress content. |
| public RequestConfig. | setCookieSpec(final String cookieSpec)
Determines the name of the cookie specification to be used for HTTP state management. |
| public RequestConfig. | |
| public RequestConfig. | setExpectContinueEnabled(final boolean expectContinueEnabled)
Determines whether the 'Expect: 100-Continue' handshake is enabled for entity enclosing methods. |
| public RequestConfig. | setHardCancellationEnabled(final boolean hardCancellationEnabled)
Determines whether request cancellation, such as through |
| public RequestConfig. | |
| public RequestConfig. | setProxy(final HttpHost proxy)
Deprecated
Use
Returns HTTP proxy to be used for request execution.
org.
or a custom org..
|
| public RequestConfig. | setProxyPreferredAuthSchemes(final Collection<String> proxyPreferredAuthSchemes)
Determines the order of preference for supported authentication schemes by their names when authenticating with the proxy host. |
| public RequestConfig. | setRedirectsEnabled(final boolean redirectsEnabled)
Determines whether redirects should be handled automatically. |
| public RequestConfig. | setResponseTimeout(final Timeout responseTimeout)
Determines the timeout until arrival of a response from the opposite endpoint. |
| public RequestConfig. | |
| public RequestConfig. | setTargetPreferredAuthSchemes(final Collection<String> targetPreferredAuthSchemes)
Determines the order of preference for supported authentication schemes by their names when authenticating with the target host. |
| authenticationEnabled | back to summary |
|---|---|
| private boolean authenticationEnabled | |
| circularRedirectsAllowed | back to summary |
|---|---|
| private boolean circularRedirectsAllowed | |
| connectionKeepAlive | back to summary |
|---|---|
| private TimeValue connectionKeepAlive | |
| connectionRequestTimeout | back to summary |
|---|---|
| private Timeout connectionRequestTimeout | |
| connectTimeout | back to summary |
|---|---|
| private Timeout connectTimeout | |
| contentCompressionEnabled | back to summary |
|---|---|
| private boolean contentCompressionEnabled | |
| cookieSpec | back to summary |
|---|---|
| private String cookieSpec | |
| expectContinueEnabled | back to summary |
|---|---|
| private boolean expectContinueEnabled | |
| hardCancellationEnabled | back to summary |
|---|---|
| private boolean hardCancellationEnabled | |
| maxRedirects | back to summary |
|---|---|
| private int maxRedirects | |
| proxy | back to summary |
|---|---|
| private HttpHost proxy | |
| proxyPreferredAuthSchemes | back to summary |
|---|---|
| private Collection<String> proxyPreferredAuthSchemes | |
| redirectsEnabled | back to summary |
|---|---|
| private boolean redirectsEnabled | |
| responseTimeout | back to summary |
|---|---|
| private Timeout responseTimeout | |
| targetPreferredAuthSchemes | back to summary |
|---|---|
| private Collection<String> targetPreferredAuthSchemes | |
| Builder | back to summary |
|---|---|
| pack-priv Builder() | |
| build | back to summary |
|---|---|
| public RequestConfig build() | |
| setAuthenticationEnabled | back to summary |
|---|---|
| public RequestConfig. Determines whether authentication should be handled automatically.
Default: | |
| setCircularRedirectsAllowed | back to summary |
|---|---|
| public RequestConfig. Determines whether circular redirects (redirects to the same location) should be allowed. The HTTP spec is not sufficiently clear whether circular redirects are permitted, therefore optionally they can be enabled
Default: | |
| setConnectionKeepAlive | back to summary |
|---|---|
| public RequestConfig. Determines the default of value of connection keep-alive time period when not
explicitly communicated by the origin server with a A negative value is interpreted as an infinite keep-alive period. Default: 3 minutes
| |
| setConnectionRequestTimeout | back to summary |
|---|---|
| public RequestConfig. Returns the connection lease request timeout used when requesting a connection from the connection manager. Default: 3 minutes. | |
| setConnectionRequestTimeout | back to summary |
|---|---|
public RequestConfig.
| |
| setConnectTimeout | back to summary |
|---|---|
| public RequestConfig. Deprecated Determines the timeout until a new connection is fully established.
This may also include transport security negotiation exchanges
such as A timeout value of zero is interpreted as an infinite timeout. Default: 3 minutes
| |
| setConnectTimeout | back to summary |
|---|---|
| public RequestConfig. Deprecated Use
| |
| setContentCompressionEnabled | back to summary |
|---|---|
| public RequestConfig. Determines whether the target server is requested to compress content.
Default:
| |
| setCookieSpec | back to summary |
|---|---|
| public RequestConfig. Determines the name of the cookie specification to be used for HTTP state management.
Default: | |
| setDefaultKeepAlive | back to summary |
|---|---|
public RequestConfig.
| |
| setExpectContinueEnabled | back to summary |
|---|---|
| public RequestConfig. Determines whether the 'Expect: 100-Continue' handshake is enabled for entity enclosing methods. The purpose of the 'Expect: 100-Continue' handshake is to allow a client that is sending a request message with a request body to determine if the origin server is willing to accept the request (based on the request headers) before the client sends the request body. 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: | |
| setHardCancellationEnabled | back to summary |
|---|---|
| public RequestConfig. Determines whether request cancellation, such as through
Note that when this option is
On HTTP/2, this option has no effect. Request cancellation will always
result in the stream being cancelled with a
On non-asynchronous clients, this option has no effect. Request
cancellation, such as through
Default:
| |
| setMaxRedirects | back to summary |
|---|---|
| public RequestConfig. Returns the maximum number of redirects to be followed. The limit on number of redirects is intended to prevent infinite loops.
Default: | |
| setProxy | back to summary |
|---|---|
| public RequestConfig. Deprecated Use Returns HTTP proxy to be used for request execution.
Default:
| |
| setProxyPreferredAuthSchemes | back to summary |
|---|---|
| public RequestConfig. Determines the order of preference for supported authentication schemes by their names when authenticating with the proxy host.
Default: | |
| setRedirectsEnabled | back to summary |
|---|---|
| public RequestConfig. Determines whether redirects should be handled automatically.
Default: | |
| setResponseTimeout | back to summary |
|---|---|
| public RequestConfig. Determines the timeout until arrival of a response from the opposite endpoint. A timeout value of zero is interpreted as an infinite timeout. Please note that response timeout may be unsupported by HTTP transports with message multiplexing.
Default:
| |
| setResponseTimeout | back to summary |
|---|---|
public RequestConfig.
| |
| setTargetPreferredAuthSchemes | back to summary |
|---|---|
| public RequestConfig. Determines the order of preference for supported authentication schemes by their names when authenticating with the target host.
Default: | |