public static class DefaultAsyncHttpClientConfig.Builder
extends java.lang.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(java.lang.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(java.lang.String[] enabledProtocols)
public DefaultAsyncHttpClientConfig.Builder setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
public DefaultAsyncHttpClientConfig.Builder setSslSessionCacheSize(java.lang.Integer sslSessionCacheSize)
public DefaultAsyncHttpClientConfig.Builder setSslSessionTimeout(java.lang.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 setTcpNoDelay(boolean tcpNoDelay)
public DefaultAsyncHttpClientConfig.Builder setSoReuseAddress(boolean soReuseAddress)
public DefaultAsyncHttpClientConfig.Builder setSoLinger(int soLinger)
public DefaultAsyncHttpClientConfig.Builder setSoSndBuf(int soSndBuf)
public DefaultAsyncHttpClientConfig.Builder setSoRcvBuf(int soRcvBuf)
public DefaultAsyncHttpClientConfig.Builder setThreadPoolName(java.lang.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(ChannelOption<T> name, T value)
public DefaultAsyncHttpClientConfig.Builder setEventLoopGroup(EventLoopGroup eventLoopGroup)
public DefaultAsyncHttpClientConfig.Builder setUseNativeTransport(boolean useNativeTransport)
public DefaultAsyncHttpClientConfig.Builder setAllocator(io.netty.buffer.ByteBufAllocator allocator)
public DefaultAsyncHttpClientConfig.Builder setNettyTimer(Timer nettyTimer)
public DefaultAsyncHttpClientConfig.Builder setThreadFactory(java.util.concurrent.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.Builder setIoThreadsCount(int ioThreadsCount)
public DefaultAsyncHttpClientConfig build()
Copyright © 2017. All Rights Reserved.