public class DefaultAsyncHttpClientConfig extends Object implements AsyncHttpClientConfig
AsyncHttpClient. System property can be also used to configure this object default behavior by doing: for documentation| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultAsyncHttpClientConfig.Builder
Builder for an
AsyncHttpClient |
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() |
public String getAhcVersion()
getAhcVersion in interface AsyncHttpClientConfigpublic boolean isFollowRedirect()
AsyncHttpClientConfigisFollowRedirect in interface AsyncHttpClientConfigpublic int getMaxRedirects()
AsyncHttpClientConfiggetMaxRedirects in interface AsyncHttpClientConfigpublic boolean isStrict302Handling()
AsyncHttpClientConfigisStrict302Handling in interface AsyncHttpClientConfigtrue if strict 302 handling is to be used, otherwise false.public boolean isCompressionEnforced()
AsyncHttpClientConfigisCompressionEnforced in interface AsyncHttpClientConfigpublic String getUserAgent()
AsyncHttpClientConfiggetUserAgent in interface AsyncHttpClientConfigpublic Realm getRealm()
AsyncHttpClientConfigRealmgetRealm in interface AsyncHttpClientConfigRealmpublic int getMaxRequestRetry()
AsyncHttpClientConfigIOException is throw by the remote servergetMaxRequestRetry in interface AsyncHttpClientConfigIOException is throw by the remote serverpublic boolean isDisableUrlEncodingForBoundRequests()
isDisableUrlEncodingForBoundRequests in interface AsyncHttpClientConfigpublic boolean isUseLaxCookieEncoder()
isUseLaxCookieEncoder in interface AsyncHttpClientConfigpublic boolean isDisableZeroCopy()
isDisableZeroCopy in interface AsyncHttpClientConfigpublic boolean isKeepEncodingHeader()
isKeepEncodingHeader in interface AsyncHttpClientConfigpublic ProxyServerSelector getProxyServerSelector()
AsyncHttpClientConfigProxyServer used by an AsyncHttpClientgetProxyServerSelector in interface AsyncHttpClientConfigProxyServerpublic boolean isAggregateWebSocketFrameFragments()
isAggregateWebSocketFrameFragments in interface AsyncHttpClientConfigpublic boolean isEnableWebSocketCompression()
isEnableWebSocketCompression in interface AsyncHttpClientConfigpublic int getWebSocketMaxBufferSize()
getWebSocketMaxBufferSize in interface AsyncHttpClientConfigpublic int getWebSocketMaxFrameSize()
getWebSocketMaxFrameSize in interface AsyncHttpClientConfigpublic int getConnectTimeout()
AsyncHttpClientConfigAsyncHttpClient can wait when connecting to a remote hostgetConnectTimeout in interface AsyncHttpClientConfigAsyncHttpClient can wait when connecting to a remote hostpublic int getRequestTimeout()
AsyncHttpClientConfigAsyncHttpClient waits until the response is completed.getRequestTimeout in interface AsyncHttpClientConfigAsyncHttpClient waits until the response is completed.public int getReadTimeout()
AsyncHttpClientConfigAsyncHttpClient can stay idle.getReadTimeout in interface AsyncHttpClientConfigAsyncHttpClient can stay idle.public int getShutdownQuietPeriod()
getShutdownQuietPeriod in interface AsyncHttpClientConfigpublic int getShutdownTimeout()
getShutdownTimeout in interface AsyncHttpClientConfigpublic boolean isKeepAlive()
AsyncHttpClientConfigChannelPool support enabled.isKeepAlive in interface AsyncHttpClientConfigpublic int getPooledConnectionIdleTimeout()
AsyncHttpClientConfigAsyncHttpClient will keep connection in pool.getPooledConnectionIdleTimeout in interface AsyncHttpClientConfigAsyncHttpClient will keep connection in pool.public int getConnectionPoolCleanerPeriod()
getConnectionPoolCleanerPeriod in interface AsyncHttpClientConfigpublic int getConnectionTtl()
getConnectionTtl in interface AsyncHttpClientConfigAsyncHttpClient will keep connection in the pool, or -1 to keep connection while possible.public int getMaxConnections()
AsyncHttpClientConfigAsyncHttpClient can handle.getMaxConnections in interface AsyncHttpClientConfigAsyncHttpClient can handle.public int getMaxConnectionsPerHost()
AsyncHttpClientConfigAsyncHttpClient can handle.getMaxConnectionsPerHost in interface AsyncHttpClientConfigAsyncHttpClient can handle.public int getAcquireFreeChannelTimeout()
AsyncHttpClientConfigAsyncHttpClient can wait to acquire a free channelgetAcquireFreeChannelTimeout in interface AsyncHttpClientConfigAsyncHttpClient can wait to acquire a free channelpublic ChannelPool getChannelPool()
getChannelPool in interface AsyncHttpClientConfigpublic ConnectionSemaphoreFactory getConnectionSemaphoreFactory()
getConnectionSemaphoreFactory in interface AsyncHttpClientConfigpublic KeepAliveStrategy getKeepAliveStrategy()
getKeepAliveStrategy in interface AsyncHttpClientConfigpublic boolean isValidateResponseHeaders()
isValidateResponseHeaders in interface AsyncHttpClientConfigpublic boolean isUseOpenSsl()
isUseOpenSsl in interface AsyncHttpClientConfigpublic boolean isUseInsecureTrustManager()
isUseInsecureTrustManager in interface AsyncHttpClientConfigpublic boolean isDisableHttpsEndpointIdentificationAlgorithm()
isDisableHttpsEndpointIdentificationAlgorithm in interface AsyncHttpClientConfigpublic int getHandshakeTimeout()
getHandshakeTimeout in interface AsyncHttpClientConfigpublic String[] getEnabledProtocols()
getEnabledProtocols in interface AsyncHttpClientConfigpublic String[] getEnabledCipherSuites()
getEnabledCipherSuites in interface AsyncHttpClientConfigpublic boolean isFilterInsecureCipherSuites()
isFilterInsecureCipherSuites in interface AsyncHttpClientConfigpublic int getSslSessionCacheSize()
getSslSessionCacheSize in interface AsyncHttpClientConfigpublic int getSslSessionTimeout()
getSslSessionTimeout in interface AsyncHttpClientConfigpublic io.netty.handler.ssl.SslContext getSslContext()
AsyncHttpClientConfigSslContext used for SSL connection.getSslContext in interface AsyncHttpClientConfigSslContext used for SSL connection.public SslEngineFactory getSslEngineFactory()
getSslEngineFactory in interface AsyncHttpClientConfigpublic List<RequestFilter> getRequestFilters()
AsyncHttpClientConfigRequestFiltergetRequestFilters in interface AsyncHttpClientConfigRequestFilterpublic List<ResponseFilter> getResponseFilters()
AsyncHttpClientConfigResponseFiltergetResponseFilters in interface AsyncHttpClientConfigResponseFilterpublic List<IOExceptionFilter> getIoExceptionFilters()
AsyncHttpClientConfigIOExceptiongetIoExceptionFilters in interface AsyncHttpClientConfigIOExceptionpublic CookieStore getCookieStore()
AsyncHttpClientConfiggetCookieStore in interface AsyncHttpClientConfigCookieStore objectpublic int expiredCookieEvictionDelay()
AsyncHttpClientConfigexpiredCookieEvictionDelay in interface AsyncHttpClientConfigpublic boolean isTcpNoDelay()
isTcpNoDelay in interface AsyncHttpClientConfigpublic boolean isSoReuseAddress()
isSoReuseAddress in interface AsyncHttpClientConfigpublic boolean isSoKeepAlive()
isSoKeepAlive in interface AsyncHttpClientConfigpublic int getSoLinger()
getSoLinger in interface AsyncHttpClientConfigpublic int getSoSndBuf()
getSoSndBuf in interface AsyncHttpClientConfigpublic int getSoRcvBuf()
getSoRcvBuf in interface AsyncHttpClientConfigpublic String getThreadPoolName()
AsyncHttpClientConfigAsyncHttpClient, which is used for thread naming and debugging.getThreadPoolName in interface AsyncHttpClientConfigpublic int getHttpClientCodecMaxInitialLineLength()
getHttpClientCodecMaxInitialLineLength in interface AsyncHttpClientConfigpublic int getHttpClientCodecMaxHeaderSize()
getHttpClientCodecMaxHeaderSize in interface AsyncHttpClientConfigpublic int getHttpClientCodecMaxChunkSize()
getHttpClientCodecMaxChunkSize in interface AsyncHttpClientConfigpublic int getHttpClientCodecInitialBufferSize()
getHttpClientCodecInitialBufferSize in interface AsyncHttpClientConfigpublic int getChunkedFileChunkSize()
getChunkedFileChunkSize in interface AsyncHttpClientConfigpublic Map<io.netty.channel.ChannelOption<Object>,Object> getChannelOptions()
getChannelOptions in interface AsyncHttpClientConfigpublic io.netty.channel.EventLoopGroup getEventLoopGroup()
getEventLoopGroup in interface AsyncHttpClientConfigpublic boolean isUseNativeTransport()
isUseNativeTransport in interface AsyncHttpClientConfigpublic io.netty.buffer.ByteBufAllocator getAllocator()
getAllocator in interface AsyncHttpClientConfigpublic io.netty.util.Timer getNettyTimer()
getNettyTimer in interface AsyncHttpClientConfigpublic long getHashedWheelTimerTickDuration()
getHashedWheelTimerTickDuration in interface AsyncHttpClientConfigHashedWheelTimerpublic int getHashedWheelTimerSize()
getHashedWheelTimerSize in interface AsyncHttpClientConfigHashedWheelTimerpublic ThreadFactory getThreadFactory()
AsyncHttpClientConfigThreadFactory an AsyncHttpClient use for handling asynchronous response.getThreadFactory in interface AsyncHttpClientConfigThreadFactory an AsyncHttpClient use for handling asynchronous response. If no ThreadFactory has been explicitly
provided, this method will return nullpublic Consumer<io.netty.channel.Channel> getHttpAdditionalChannelInitializer()
getHttpAdditionalChannelInitializer in interface AsyncHttpClientConfigpublic Consumer<io.netty.channel.Channel> getWsAdditionalChannelInitializer()
getWsAdditionalChannelInitializer in interface AsyncHttpClientConfigpublic AsyncHttpClientConfig.ResponseBodyPartFactory getResponseBodyPartFactory()
getResponseBodyPartFactory in interface AsyncHttpClientConfigpublic int getIoThreadsCount()
getIoThreadsCount in interface AsyncHttpClientConfigCopyright © 2024. All rights reserved.