Uses of Class
org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder
Packages that use HttpAsyncClientBuilder
Package
Description
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
Caching API implementation for both the classic and
the asynchronous HTTP transports.
-
Uses of HttpAsyncClientBuilder in org.apache.hc.client5.http.impl.async
Methods in org.apache.hc.client5.http.impl.async that return HttpAsyncClientBuilderModifier and TypeMethodDescriptionfinal HttpAsyncClientBuilder
HttpAsyncClientBuilder.addExecInterceptorAfter
(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor after interceptor with the given name.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addExecInterceptorBefore
(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor before an existing interceptor.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addExecInterceptorFirst
(String name, AsyncExecChainHandler interceptor) Add an interceptor to the head of the processing list.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addExecInterceptorLast
(String name, AsyncExecChainHandler interceptor) Add an interceptor to the tail of the processing list.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addRequestInterceptorFirst
(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addRequestInterceptorLast
(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addResponseInterceptorFirst
(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.addResponseInterceptorLast
(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.static HttpAsyncClientBuilder
HttpAsyncClientBuilder.create()
static HttpAsyncClientBuilder
HttpAsyncClients.custom()
Creates builder object for construction of customCloseableHttpAsyncClient
instances.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.disableAuthCaching()
Disables authentication scheme caching.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.disableAutomaticRetries()
Disables automatic request recovery and re-execution.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.disableConnectionState()
Disables connection state tracking.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.disableCookieManagement()
Disables state (cookie) management.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.disableRedirectHandling()
Disables automatic redirect handling.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.evictExpiredConnections()
Makes this instance of HttpClient proactively evict expired connections from the connection pool using a background thread.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.evictIdleConnections
(org.apache.hc.core5.util.TimeValue maxIdleTime) Makes this instance of HttpClient proactively evict idle connections from the connection pool using a background thread.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.replaceExecInterceptor
(String existing, AsyncExecChainHandler interceptor) Replace an existing interceptor with the given name with new interceptor.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setCharCodingConfig
(org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) SetsCharCodingConfig
configuration.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setConnectionManager
(AsyncClientConnectionManager connManager) AssignsAsyncClientConnectionManager
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setConnectionManagerShared
(boolean shared) Defines the connection manager is to be shared by multiple client instances.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setConnectionReuseStrategy
(org.apache.hc.core5.http.ConnectionReuseStrategy reuseStrategy) AssignsConnectionReuseStrategy
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setDefaultAuthSchemeRegistry
(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry) Assigns defaultAuthScheme
registry which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setDefaultCookieSpecRegistry
(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry) Assigns defaultCookieSpec
registry which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setDefaultCookieStore
(CookieStore cookieStore) Assigns defaultCookieStore
instance which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setDefaultCredentialsProvider
(CredentialsProvider credentialsProvider) Assigns defaultCredentialsProvider
instance which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setDefaultHeaders
(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders) Assigns default request header values.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setDefaultRequestConfig
(RequestConfig config) Assigns defaultRequestConfig
instance which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setH2Config
(org.apache.hc.core5.http2.config.H2Config h2Config) SetsH2Config
configuration.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setHttp1Config
(org.apache.hc.core5.http.config.Http1Config h1Config) SetsHttp1Config
configuration.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setIOReactorConfig
(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig) SetsIOReactorConfig
configuration.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setIoReactorExceptionCallback
(org.apache.hc.core5.function.Callback<Exception> ioReactorExceptionCallback) Sets the callback that will be invoked when the client's IOReactor encounters an uncaught exception.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setIoSessionDecorator
(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.reactor.IOSession> ioSessionDecorator) Sets theIOSession
Decorator
that will be use with the client's IOReactor.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setIOSessionListener
(org.apache.hc.core5.reactor.IOSessionListener ioSessionListener) SetsIOSessionListener
listener.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setKeepAliveStrategy
(ConnectionKeepAliveStrategy keepAliveStrategy) AssignsConnectionKeepAliveStrategy
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setProxy
(org.apache.hc.core5.http.HttpHost proxy) Assigns default proxy value.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setProxyAuthenticationStrategy
(AuthenticationStrategy proxyAuthStrategy) AssignsAuthenticationStrategy
instance for proxy authentication.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setProxySelector
(ProxySelector proxySelector) Sets theProxySelector
that will be used to select the proxies to be used for establishing HTTP connections.HttpAsyncClientBuilder.setRedirectStrategy
(RedirectStrategy redirectStrategy) AssignsRedirectStrategy
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setRetryStrategy
(HttpRequestRetryStrategy retryStrategy) AssignsHttpRequestRetryStrategy
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setRoutePlanner
(HttpRoutePlanner routePlanner) AssignsHttpRoutePlanner
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setSchemePortResolver
(SchemePortResolver schemePortResolver) AssignsSchemePortResolver
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setTargetAuthenticationStrategy
(AuthenticationStrategy targetAuthStrategy) AssignsAuthenticationStrategy
instance for target host authentication.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setThreadFactory
(ThreadFactory threadFactory) AssignsThreadFactory
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setUserAgent
(String userAgent) AssignsUser-Agent
value.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setUserTokenHandler
(UserTokenHandler userTokenHandler) AssignsUserTokenHandler
instance.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.setVersionPolicy
(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy) Deprecated.final HttpAsyncClientBuilder
HttpAsyncClientBuilder.useSystemProperties()
Use system properties when creating and configuring default implementations. -
Uses of HttpAsyncClientBuilder in org.apache.hc.client5.http.impl.cache
Subclasses of HttpAsyncClientBuilder in org.apache.hc.client5.http.impl.cacheModifier and TypeClassDescriptionclass
Builder forCloseableHttpAsyncClient
instances capable of client-side caching.
TlsConfig
and connection manager methods