public interface AsyncHttpClientConfig
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncHttpClientConfig.AdditionalChannelInitializer |
static class |
AsyncHttpClientConfig.ResponseBodyPartFactory |
Modifier and Type | Method and Description |
---|---|
String |
getAhcVersion() |
Map<io.netty.channel.ChannelOption<Object>,Object> |
getChannelOptions() |
ChannelPool |
getChannelPool() |
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() |
io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
int |
getHandshakeTimeout() |
AsyncHttpClientConfig.AdditionalChannelInitializer |
getHttpAdditionalChannelInitializer() |
int |
getHttpClientCodecMaxChunkSize() |
int |
getHttpClientCodecMaxHeaderSize() |
int |
getHttpClientCodecMaxInitialLineLength() |
List<IOExceptionFilter> |
getIoExceptionFilters()
Return the list of
IOException |
KeepAliveStrategy |
getKeepAliveStrategy() |
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 |
io.netty.util.Timer |
getNettyTimer() |
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. |
AsyncHttpClientConfig.ResponseBodyPartFactory |
getResponseBodyPartFactory() |
List<ResponseFilter> |
getResponseFilters()
Return the list of
ResponseFilter |
int |
getShutdownQuietPeriod() |
int |
getShutdownTimeout() |
io.netty.handler.ssl.SslContext |
getSslContext()
Return an instance of
SslContext used for SSL connection. |
SslEngineFactory |
getSslEngineFactory() |
int |
getSslSessionCacheSize() |
int |
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 |
getUserAgent()
Return the USER_AGENT header value
|
int |
getWebSocketMaxBufferSize() |
int |
getWebSocketMaxFrameSize() |
AsyncHttpClientConfig.AdditionalChannelInitializer |
getWsAdditionalChannelInitializer() |
boolean |
isAcceptAnyCertificate() |
boolean |
isCompressionEnforced()
Is HTTP compression enforced.
|
boolean |
isDisableUrlEncodingForBoundRequests() |
boolean |
isDisableZeroCopy() |
boolean |
isFollowRedirect()
Is HTTP redirect enabled
|
boolean |
isKeepAlive()
Is the
ChannelPool support 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.
|
boolean |
isUseNativeTransport() |
boolean |
isUseOpenSsl() |
boolean |
isUsePooledMemory() |
boolean |
isValidateResponseHeaders() |
String getAhcVersion()
String getThreadPoolName()
AsyncHttpClient
, which is used for thread naming and debugging.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 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 isKeepAlive()
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
io.netty.handler.ssl.SslContext getSslContext()
SslContext
used for SSL connection.SslContext
used for SSL connection.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 isUseOpenSsl()
boolean isAcceptAnyCertificate()
String[] getEnabledProtocols()
String[] getEnabledCipherSuites()
int getSslSessionCacheSize()
int getSslSessionTimeout()
int getHttpClientCodecMaxInitialLineLength()
int getHttpClientCodecMaxHeaderSize()
int getHttpClientCodecMaxChunkSize()
boolean isDisableZeroCopy()
int getHandshakeTimeout()
SslEngineFactory getSslEngineFactory()
int getChunkedFileChunkSize()
int getWebSocketMaxBufferSize()
int getWebSocketMaxFrameSize()
boolean isKeepEncodingHeader()
int getShutdownQuietPeriod()
int getShutdownTimeout()
io.netty.channel.EventLoopGroup getEventLoopGroup()
boolean isUseNativeTransport()
AsyncHttpClientConfig.AdditionalChannelInitializer getHttpAdditionalChannelInitializer()
AsyncHttpClientConfig.AdditionalChannelInitializer getWsAdditionalChannelInitializer()
AsyncHttpClientConfig.ResponseBodyPartFactory getResponseBodyPartFactory()
ChannelPool getChannelPool()
io.netty.util.Timer getNettyTimer()
KeepAliveStrategy getKeepAliveStrategy()
boolean isValidateResponseHeaders()
boolean isUsePooledMemory()
Copyright © 2015. All Rights Reserved.