public interface AsyncHttpClientConfig
| Modifier and Type | Interface and Description |
|---|---|
static class |
AsyncHttpClientConfig.ResponseBodyPartFactory |
| Modifier and Type | Method and Description |
|---|---|
int |
expiredCookieEvictionDelay()
Return the delay in milliseconds to evict expired cookies from CookieStore
|
int |
getAcquireFreeChannelTimeout()
Return the maximum duration in milliseconds an
AsyncHttpClient can wait to acquire a free channel |
String |
getAhcVersion() |
io.netty.buffer.ByteBufAllocator |
getAllocator() |
Map<io.netty.channel.ChannelOption<Object>,Object> |
getChannelOptions() |
ChannelPool |
getChannelPool() |
int |
getChunkedFileChunkSize() |
int |
getConnectionPoolCleanerPeriod() |
ConnectionSemaphoreFactory |
getConnectionSemaphoreFactory() |
int |
getConnectionTtl() |
int |
getConnectTimeout()
Return the maximum time in millisecond an
AsyncHttpClient can wait when connecting to a remote host |
CookieStore |
getCookieStore()
Return cookie store that is used to store and retrieve cookies
|
String[] |
getEnabledCipherSuites() |
String[] |
getEnabledProtocols() |
io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
int |
getHandshakeTimeout() |
int |
getHashedWheelTimerSize() |
long |
getHashedWheelTimerTickDuration() |
Consumer<io.netty.channel.Channel> |
getHttpAdditionalChannelInitializer() |
int |
getHttpClientCodecInitialBufferSize() |
int |
getHttpClientCodecMaxChunkSize() |
int |
getHttpClientCodecMaxHeaderSize() |
int |
getHttpClientCodecMaxInitialLineLength() |
List<IOExceptionFilter> |
getIoExceptionFilters()
Return the list of
IOException |
int |
getIoThreadsCount() |
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() |
int |
getSoLinger() |
int |
getSoRcvBuf() |
int |
getSoSndBuf() |
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() |
Consumer<io.netty.channel.Channel> |
getWsAdditionalChannelInitializer() |
boolean |
isAggregateWebSocketFrameFragments() |
boolean |
isCompressionEnforced()
Is HTTP compression enforced.
|
boolean |
isDisableHttpsEndpointIdentificationAlgorithm() |
boolean |
isDisableUrlEncodingForBoundRequests() |
boolean |
isDisableZeroCopy() |
boolean |
isEnableWebSocketCompression() |
boolean |
isFilterInsecureCipherSuites() |
boolean |
isFollowRedirect()
Is HTTP redirect enabled
|
boolean |
isKeepAlive()
Is the
ChannelPool support enabled. |
boolean |
isKeepEncodingHeader() |
boolean |
isSoKeepAlive() |
boolean |
isSoReuseAddress() |
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 |
isTcpNoDelay() |
boolean |
isUseInsecureTrustManager() |
boolean |
isUseLaxCookieEncoder() |
boolean |
isUseNativeTransport() |
boolean |
isUseOpenSsl() |
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 getAcquireFreeChannelTimeout()
AsyncHttpClient can wait to acquire a free channelAsyncHttpClient can wait to acquire a free channelint 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 getConnectionPoolCleanerPeriod()
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 nullProxyServerSelector getProxyServerSelector()
ProxyServer used by an AsyncHttpClientProxyServerio.netty.handler.ssl.SslContext getSslContext()
SslContext used for SSL connection.SslContext used for SSL connection.List<RequestFilter> getRequestFilters()
RequestFilterRequestFilterList<ResponseFilter> getResponseFilters()
ResponseFilterResponseFilterList<IOExceptionFilter> getIoExceptionFilters()
IOExceptionIOExceptionCookieStore getCookieStore()
CookieStore objectint expiredCookieEvictionDelay()
int getMaxRequestRetry()
IOException is throw by the remote serverIOException is throw by the remote serverboolean isDisableUrlEncodingForBoundRequests()
boolean isUseLaxCookieEncoder()
boolean isStrict302Handling()
true if strict 302 handling is to be used, otherwise false.int getConnectionTtl()
AsyncHttpClient will keep connection in the pool, or -1 to keep connection while possible.boolean isUseOpenSsl()
boolean isUseInsecureTrustManager()
boolean isDisableHttpsEndpointIdentificationAlgorithm()
String[] getEnabledProtocols()
String[] getEnabledCipherSuites()
boolean isFilterInsecureCipherSuites()
int getSslSessionCacheSize()
int getSslSessionTimeout()
int getHttpClientCodecMaxInitialLineLength()
int getHttpClientCodecMaxHeaderSize()
int getHttpClientCodecMaxChunkSize()
int getHttpClientCodecInitialBufferSize()
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()
Consumer<io.netty.channel.Channel> getHttpAdditionalChannelInitializer()
Consumer<io.netty.channel.Channel> getWsAdditionalChannelInitializer()
AsyncHttpClientConfig.ResponseBodyPartFactory getResponseBodyPartFactory()
ChannelPool getChannelPool()
ConnectionSemaphoreFactory getConnectionSemaphoreFactory()
io.netty.util.Timer getNettyTimer()
long getHashedWheelTimerTickDuration()
HashedWheelTimerint getHashedWheelTimerSize()
HashedWheelTimerKeepAliveStrategy getKeepAliveStrategy()
boolean isValidateResponseHeaders()
boolean isAggregateWebSocketFrameFragments()
boolean isEnableWebSocketCompression()
boolean isTcpNoDelay()
boolean isSoReuseAddress()
boolean isSoKeepAlive()
int getSoLinger()
int getSoSndBuf()
int getSoRcvBuf()
io.netty.buffer.ByteBufAllocator getAllocator()
int getIoThreadsCount()
Copyright © 2024. All rights reserved.