Uses of Class
com.ning.http.client.AsyncHttpClientConfig.Builder
Packages that use AsyncHttpClientConfig.Builder
-
Uses of AsyncHttpClientConfig.Builder in com.ning.http.client
Methods in com.ning.http.client that return AsyncHttpClientConfig.BuilderModifier and TypeMethodDescriptionAsyncHttpClientConfig.Builder.addIOExceptionFilter(IOExceptionFilter ioExceptionFilter) Add anIOExceptionFilterthat will be invoked when anIOExceptionoccurs during the download/upload operations.AsyncHttpClientConfig.Builder.addRequestFilter(RequestFilter requestFilter) Add anRequestFilterthat will be invoked beforeAsyncHttpClient.executeRequest(Request)AsyncHttpClientConfig.Builder.addResponseFilter(ResponseFilter responseFilter) Add anResponseFilterthat will be invoked as soon as the response is received, and beforeAsyncHandler.onStatusReceived(HttpResponseStatus).AsyncHttpClientConfig.Builder.removeIOExceptionFilter(IOExceptionFilter ioExceptionFilter) Remove anIOExceptionFiltertthat will be invoked when anIOExceptionoccurs during the download/upload operations.AsyncHttpClientConfig.Builder.removeRequestFilter(RequestFilter requestFilter) Remove anRequestFilterthat will be invoked beforeAsyncHttpClient.executeRequest(Request)AsyncHttpClientConfig.Builder.removeResponseFilter(ResponseFilter responseFilter) Remove anResponseFilterthat will be invoked as soon as the response is received, and beforeAsyncHandler.onStatusReceived(HttpResponseStatus).AsyncHttpClientConfig.Builder.setAcceptAnyCertificate(boolean acceptAnyCertificate) AsyncHttpClientConfig.Builder.setAllowPoolingConnections(boolean allowPoolingConnections) Set true if connection can be pooled by aChannelPool.AsyncHttpClientConfig.Builder.setAllowPoolingSslConnections(boolean allowPoolingSslConnections) Return true is if connections pooling is enabled.AsyncHttpClientConfig.Builder.setAsyncHttpClientProviderConfig(AsyncHttpProviderConfig<?, ?> providerConfig) Set theAsyncHttpProviderConfigAsyncHttpClientConfig.Builder.setCompressionEnforced(boolean compressionEnforced) Enforce HTTP compression.AsyncHttpClientConfig.Builder.setConnectionTTL(int connectionTTL) Set the maximum time in millisecond connection can be added to the pool for further reuseAsyncHttpClientConfig.Builder.setConnectTimeout(int connectTimeOut) Set the maximum time in millisecond anAsyncHttpClientcan wait when connecting to a remote hostAsyncHttpClientConfig.Builder.setDisableUrlEncodingForBoundedRequests(boolean disableUrlEncodingForBoundedRequests) Disable automatic url escapingAsyncHttpClientConfig.Builder.setEnabledCipherSuites(String[] enabledCipherSuites) AsyncHttpClientConfig.Builder.setEnabledProtocols(String[] enabledProtocols) AsyncHttpClientConfig.Builder.setExecutorService(ExecutorService applicationThreadPool) Set theExecutorServiceanAsyncHttpClientuse for handling asynchronous response.AsyncHttpClientConfig.Builder.setFollowRedirect(boolean followRedirect) Set to true to enable HTTP redirectAsyncHttpClientConfig.Builder.setHostnameVerifier(HostnameVerifier hostnameVerifier) Set theHostnameVerifierAsyncHttpClientConfig.Builder.setIOThreadMultiplier(int multiplier) AsyncHttpClientConfig.Builder.setMaxConnections(int maxConnections) Set the maximum number of connections anAsyncHttpClientcan handle.AsyncHttpClientConfig.Builder.setMaxConnectionsPerHost(int maxConnectionsPerHost) Set the maximum number of connections per (scheme, host, port) anAsyncHttpClientcan handle.AsyncHttpClientConfig.Builder.setMaxRedirects(int maxRedirects) Set the maximum number of HTTP redirectAsyncHttpClientConfig.Builder.setMaxRequestHeaders(int maxRequestHeaders) AsyncHttpClientConfig.Builder.setMaxRequestRetry(int maxRequestRetry) Set the number of time a request will be retried when anIOExceptionoccurs because of a Network exception.AsyncHttpClientConfig.Builder.setNtlmAvoidSendPayloadOnType1(boolean ntlmAvoidSendPayloadOnType1) AsyncHttpClientConfig.Builder.setPooledConnectionIdleTimeout(int pooledConnectionIdleTimeout) Set the maximum time in millisecond anAsyncHttpClientwill keep connection idle in pool.AsyncHttpClientConfig.Builder.setProxyServer(ProxyServer proxyServer) Set an instance ofProxyServerused by anAsyncHttpClientAsyncHttpClientConfig.Builder.setProxyServerSelector(ProxyServerSelector proxyServerSelector) Set an instance ofProxyServerSelectorused by anAsyncHttpClientAsyncHttpClientConfig.Builder.setReadTimeout(int readTimeout) Set the maximum time in millisecond anAsyncHttpClientcan stay idle.Set theRealmthat will be used for all requests.AsyncHttpClientConfig.Builder.setRequestTimeout(int requestTimeout) Set the maximum time in millisecond anAsyncHttpClientwaits until the response is completed.AsyncHttpClientConfig.Builder.setSSLContext(SSLContext sslContext) Set theSSLContextfor secure connection.AsyncHttpClientConfig.Builder.setSslSessionCacheSize(Integer sslSessionCacheSize) AsyncHttpClientConfig.Builder.setSslSessionTimeout(Integer sslSessionTimeout) AsyncHttpClientConfig.Builder.setStrict302Handling(boolean strict302Handling) Configures this AHC instance to be strict in it's handling of 302 redirects in a POST/Redirect/GET situation.AsyncHttpClientConfig.Builder.setUseProxyProperties(boolean useProxyProperties) Sets whether AHC should use the default http.proxy* system properties to obtain proxy information.AsyncHttpClientConfig.Builder.setUseProxySelector(boolean useProxySelector) Sets whether AHC should use the default JDK ProxySelector to select a proxy server.AsyncHttpClientConfig.Builder.setUserAgent(String userAgent) Set the USER_AGENT header valueAsyncHttpClientConfig.Builder.setUseRelativeURIsWithConnectProxies(boolean useRelativeURIsWithConnectProxies) Configures this AHC instance to use relative URIs instead of absolute ones when talking with a SSL proxy or WebSocket proxy.AsyncHttpClientConfig.Builder.setWebSocketTimeout(int webSocketTimeout) Set the maximum time in millisecond anWebSocketcan stay idle.