public static class DefaultAsyncHttpClientConfig.Builder extends Object
AsyncHttpClient
Constructor and Description |
---|
Builder() |
Builder(AsyncHttpClientConfig config) |
public Builder()
public Builder(AsyncHttpClientConfig config)
public DefaultAsyncHttpClientConfig.Builder setFollowRedirect(boolean followRedirect)
public DefaultAsyncHttpClientConfig.Builder setMaxRedirects(int maxRedirects)
public DefaultAsyncHttpClientConfig.Builder setStrict302Handling(boolean strict302Handling)
public DefaultAsyncHttpClientConfig.Builder setCompressionEnforced(boolean compressionEnforced)
public DefaultAsyncHttpClientConfig.Builder setUserAgent(String userAgent)
public DefaultAsyncHttpClientConfig.Builder setRealm(Realm realm)
public DefaultAsyncHttpClientConfig.Builder setRealm(Realm.Builder realmBuilder)
public DefaultAsyncHttpClientConfig.Builder setMaxRequestRetry(int maxRequestRetry)
public DefaultAsyncHttpClientConfig.Builder setDisableUrlEncodingForBoundRequests(boolean disableUrlEncodingForBoundRequests)
public DefaultAsyncHttpClientConfig.Builder setDisableZeroCopy(boolean disableZeroCopy)
public DefaultAsyncHttpClientConfig.Builder setKeepEncodingHeader(boolean keepEncodingHeader)
public DefaultAsyncHttpClientConfig.Builder setProxyServerSelector(ProxyServerSelector proxyServerSelector)
public DefaultAsyncHttpClientConfig.Builder setValidateResponseHeaders(boolean validateResponseHeaders)
public DefaultAsyncHttpClientConfig.Builder setProxyServer(ProxyServer proxyServer)
public DefaultAsyncHttpClientConfig.Builder setProxyServer(ProxyServer.Builder proxyServerBuilder)
public DefaultAsyncHttpClientConfig.Builder setUseProxySelector(boolean useProxySelector)
public DefaultAsyncHttpClientConfig.Builder setUseProxyProperties(boolean useProxyProperties)
public DefaultAsyncHttpClientConfig.Builder setConnectTimeout(int connectTimeout)
public DefaultAsyncHttpClientConfig.Builder setRequestTimeout(int requestTimeout)
public DefaultAsyncHttpClientConfig.Builder setReadTimeout(int readTimeout)
public DefaultAsyncHttpClientConfig.Builder setShutdownQuietPeriod(int shutdownQuietPeriod)
public DefaultAsyncHttpClientConfig.Builder setShutdownTimeout(int shutdownTimeout)
public DefaultAsyncHttpClientConfig.Builder setKeepAlive(boolean keepAlive)
public DefaultAsyncHttpClientConfig.Builder setPooledConnectionIdleTimeout(int pooledConnectionIdleTimeout)
public DefaultAsyncHttpClientConfig.Builder setConnectionTtl(int connectionTtl)
public DefaultAsyncHttpClientConfig.Builder setMaxConnections(int maxConnections)
public DefaultAsyncHttpClientConfig.Builder setMaxConnectionsPerHost(int maxConnectionsPerHost)
public DefaultAsyncHttpClientConfig.Builder setChannelPool(ChannelPool channelPool)
public DefaultAsyncHttpClientConfig.Builder setKeepAliveStrategy(KeepAliveStrategy keepAliveStrategy)
public DefaultAsyncHttpClientConfig.Builder setUseOpenSsl(boolean useOpenSsl)
public DefaultAsyncHttpClientConfig.Builder setAcceptAnyCertificate(boolean acceptAnyCertificate)
public DefaultAsyncHttpClientConfig.Builder setHandshakeTimeout(int handshakeTimeout)
public DefaultAsyncHttpClientConfig.Builder setEnabledProtocols(String[] enabledProtocols)
public DefaultAsyncHttpClientConfig.Builder setEnabledCipherSuites(String[] enabledCipherSuites)
public DefaultAsyncHttpClientConfig.Builder setSslSessionCacheSize(Integer sslSessionCacheSize)
public DefaultAsyncHttpClientConfig.Builder setSslSessionTimeout(Integer sslSessionTimeout)
public DefaultAsyncHttpClientConfig.Builder setSslContext(io.netty.handler.ssl.SslContext sslContext)
public DefaultAsyncHttpClientConfig.Builder setSslEngineFactory(SslEngineFactory sslEngineFactory)
public DefaultAsyncHttpClientConfig.Builder addRequestFilter(RequestFilter requestFilter)
public DefaultAsyncHttpClientConfig.Builder removeRequestFilter(RequestFilter requestFilter)
public DefaultAsyncHttpClientConfig.Builder addResponseFilter(ResponseFilter responseFilter)
public DefaultAsyncHttpClientConfig.Builder removeResponseFilter(ResponseFilter responseFilter)
public DefaultAsyncHttpClientConfig.Builder addIOExceptionFilter(IOExceptionFilter ioExceptionFilter)
public DefaultAsyncHttpClientConfig.Builder removeIOExceptionFilter(IOExceptionFilter ioExceptionFilter)
public DefaultAsyncHttpClientConfig.Builder setThreadPoolName(String threadPoolName)
public DefaultAsyncHttpClientConfig.Builder setHttpClientCodecMaxInitialLineLength(int httpClientCodecMaxInitialLineLength)
public DefaultAsyncHttpClientConfig.Builder setHttpClientCodecMaxHeaderSize(int httpClientCodecMaxHeaderSize)
public DefaultAsyncHttpClientConfig.Builder setHttpClientCodecMaxChunkSize(int httpClientCodecMaxChunkSize)
public DefaultAsyncHttpClientConfig.Builder setChunkedFileChunkSize(int chunkedFileChunkSize)
public DefaultAsyncHttpClientConfig.Builder setWebSocketMaxBufferSize(int webSocketMaxBufferSize)
public DefaultAsyncHttpClientConfig.Builder setWebSocketMaxFrameSize(int webSocketMaxFrameSize)
public <T> DefaultAsyncHttpClientConfig.Builder addChannelOption(io.netty.channel.ChannelOption<T> name, T value)
public DefaultAsyncHttpClientConfig.Builder setEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
public DefaultAsyncHttpClientConfig.Builder setUseNativeTransport(boolean useNativeTransport)
public DefaultAsyncHttpClientConfig.Builder setUsePooledMemory(boolean usePooledMemory)
public DefaultAsyncHttpClientConfig.Builder setNettyTimer(io.netty.util.Timer nettyTimer)
public DefaultAsyncHttpClientConfig.Builder setThreadFactory(ThreadFactory threadFactory)
public DefaultAsyncHttpClientConfig.Builder setHttpAdditionalChannelInitializer(AsyncHttpClientConfig.AdditionalChannelInitializer httpAdditionalChannelInitializer)
public DefaultAsyncHttpClientConfig.Builder setWsAdditionalChannelInitializer(AsyncHttpClientConfig.AdditionalChannelInitializer wsAdditionalChannelInitializer)
public DefaultAsyncHttpClientConfig.Builder setResponseBodyPartFactory(AsyncHttpClientConfig.ResponseBodyPartFactory responseBodyPartFactory)
public DefaultAsyncHttpClientConfig build()
Copyright © 2015. All Rights Reserved.