public interface AsyncHttpClientConfig
Modifier and Type | Method and Description |
---|---|
AdvancedConfig |
getAdvancedConfig()
Return the
AdvancedConfig |
String |
getAhcVersion() |
int |
getChunkedFileChunkSize() |
int |
getConnectionTTL()
Return the maximum time in millisecond an
AsyncHttpClient will
keep connection in the pool, or -1 to keep connection while possible. |
int |
getConnectTimeout()
Return the maximum time in millisecond an
AsyncHttpClient can
wait when connecting to a remote host |
String[] |
getEnabledCipherSuites() |
String[] |
getEnabledProtocols() |
long |
getHandshakeTimeout() |
int |
getHttpClientCodecMaxChunkSize() |
int |
getHttpClientCodecMaxHeaderSize() |
int |
getHttpClientCodecMaxInitialLineLength() |
List<IOExceptionFilter> |
getIOExceptionFilters()
Return the list of
IOException |
int |
getMaxConnections()
Return the maximum number of connections an
AsyncHttpClient can
handle. |
int |
getMaxConnectionsPerHost()
Return the maximum number of connections per hosts an
AsyncHttpClient can handle. |
int |
getMaxRedirects()
Get the maximum number of HTTP redirect
|
int |
getMaxRequestRetry()
Return the number of time the library will retry when an
IOException is throw by the remote server |
int |
getPooledConnectionIdleTimeout()
Return the maximum time in millisecond an
AsyncHttpClient will
keep connection in pool. |
ProxyServerSelector |
getProxyServerSelector()
An instance of
ProxyServer used by an AsyncHttpClient |
int |
getReadTimeout()
Return the maximum time in millisecond an
AsyncHttpClient can
stay idle. |
Realm |
getRealm()
Return the current
Realm |
List<RequestFilter> |
getRequestFilters()
Return the list of
RequestFilter |
int |
getRequestTimeout()
Return the maximum time in millisecond an
AsyncHttpClient waits
until the response is completed. |
List<ResponseFilter> |
getResponseFilters()
Return the list of
ResponseFilter |
int |
getShutdownQuietPeriod() |
int |
getShutdownTimeout() |
SSLContext |
getSSLContext()
Return an instance of
SSLContext used for SSL connection. |
SSLEngineFactory |
getSslEngineFactory() |
Integer |
getSslSessionCacheSize() |
Integer |
getSslSessionTimeout() |
ThreadFactory |
getThreadFactory()
Return the
ThreadFactory an
AsyncHttpClient use for handling asynchronous response. |
String |
getThreadPoolName()
Return the name of
AsyncHttpClient , which is used for thread naming
and debugging. |
String |
getThreadPoolNameOrDefault()
Return the name of
AsyncHttpClient , or default string if name is null or empty. |
String |
getUserAgent()
Return the USER_AGENT header value
|
int |
getWebSocketMaxBufferSize() |
int |
getWebSocketMaxFrameSize() |
int |
getWebSocketTimeout()
Return the maximum time, in milliseconds, a
WebSocket may be idle before being timed
out. |
boolean |
isAcceptAnyCertificate() |
boolean |
isAllowPoolingConnections()
Is the
ChannelPool support enabled. |
boolean |
isCompressionEnforced()
Is HTTP compression enforced.
|
boolean |
isDisableUrlEncodingForBoundRequests() |
boolean |
isDisableZeroCopy() |
boolean |
isFollowRedirect()
Is HTTP redirect enabled
|
boolean |
isKeepEncodingHeader() |
boolean |
isStrict302Handling()
In the case of a POST/Redirect/Get scenario where the server uses a 302
for the redirect, should AHC respond to the redirect with a GET or
whatever the original method was.
|
String getAhcVersion()
String getThreadPoolName()
AsyncHttpClient
, which is used for thread naming
and debugging.String getThreadPoolNameOrDefault()
AsyncHttpClient
, or default string if name is null or empty.int getMaxConnections()
AsyncHttpClient
can
handle.AsyncHttpClient
can
handle.int getMaxConnectionsPerHost()
AsyncHttpClient
can handle.AsyncHttpClient
can handle.int getConnectTimeout()
AsyncHttpClient
can
wait when connecting to a remote hostAsyncHttpClient
can
wait when connecting to a remote hostint getWebSocketTimeout()
WebSocket
may be idle before being timed
out.WebSocket
may be idle before being
timed out.int getReadTimeout()
AsyncHttpClient
can
stay idle.AsyncHttpClient
can
stay idle.int getPooledConnectionIdleTimeout()
AsyncHttpClient
will
keep connection in pool.AsyncHttpClient
will
keep connection in pool.int getRequestTimeout()
AsyncHttpClient
waits
until the response is completed.AsyncHttpClient
waits
until the response is completed.boolean isFollowRedirect()
int getMaxRedirects()
boolean isAllowPoolingConnections()
ChannelPool
support enabled.String getUserAgent()
boolean isCompressionEnforced()
ThreadFactory getThreadFactory()
ThreadFactory
an
AsyncHttpClient
use for handling asynchronous response.ThreadFactory
an
AsyncHttpClient
use for handling asynchronous response.
If no ThreadFactory
has been explicitly provided, this
method will return null
ProxyServerSelector getProxyServerSelector()
ProxyServer
used by an AsyncHttpClient
ProxyServer
SSLContext getSSLContext()
SSLContext
used for SSL connection.SSLContext
used for SSL connection.AdvancedConfig getAdvancedConfig()
AdvancedConfig
AdvancedConfig
List<RequestFilter> getRequestFilters()
RequestFilter
ResponseFilter
List<ResponseFilter> getResponseFilters()
ResponseFilter
ResponseFilter
List<IOExceptionFilter> getIOExceptionFilters()
IOException
IOException
int getMaxRequestRetry()
IOException
is throw by the remote serverIOException
is throw by the remote serverboolean isDisableUrlEncodingForBoundRequests()
boolean isStrict302Handling()
true
if string 302 handling is to be used, otherwise
false
.int getConnectionTTL()
AsyncHttpClient
will
keep connection in the pool, or -1 to keep connection while possible.AsyncHttpClient
will
keep connection in the pool, or -1 to keep connection while
possible.boolean isAcceptAnyCertificate()
String[] getEnabledProtocols()
String[] getEnabledCipherSuites()
Integer getSslSessionCacheSize()
Integer getSslSessionTimeout()
int getHttpClientCodecMaxInitialLineLength()
int getHttpClientCodecMaxHeaderSize()
int getHttpClientCodecMaxChunkSize()
boolean isDisableZeroCopy()
long getHandshakeTimeout()
SSLEngineFactory getSslEngineFactory()
int getChunkedFileChunkSize()
int getWebSocketMaxBufferSize()
int getWebSocketMaxFrameSize()
boolean isKeepEncodingHeader()
int getShutdownQuietPeriod()
int getShutdownTimeout()
Copyright © 2015. All Rights Reserved.