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 HttpAsyncClientBuilderHttpAsyncClientBuilder.addExecInterceptorAfter(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor after interceptor with the given name.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addExecInterceptorBefore(String existing, String name, AsyncExecChainHandler interceptor) Adds this execution interceptor before an existing interceptor.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addExecInterceptorFirst(String name, AsyncExecChainHandler interceptor) Add an interceptor to the head of the processing list.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addExecInterceptorLast(String name, AsyncExecChainHandler interceptor) Add an interceptor to the tail of the processing list.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addRequestInterceptorFirst(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addRequestInterceptorLast(org.apache.hc.core5.http.HttpRequestInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addResponseInterceptorFirst(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the head of the protocol processing list.final HttpAsyncClientBuilderHttpAsyncClientBuilder.addResponseInterceptorLast(org.apache.hc.core5.http.HttpResponseInterceptor interceptor) Adds this protocol interceptor to the tail of the protocol processing list.static HttpAsyncClientBuilderHttpAsyncClientBuilder.create()static HttpAsyncClientBuilderHttpAsyncClients.custom()Creates builder object for construction of customCloseableHttpAsyncClientinstances.final HttpAsyncClientBuilderHttpAsyncClientBuilder.disableAuthCaching()Disables authentication scheme caching.final HttpAsyncClientBuilderHttpAsyncClientBuilder.disableAutomaticRetries()Disables automatic request recovery and re-execution.final HttpAsyncClientBuilderHttpAsyncClientBuilder.disableConnectionState()Disables connection state tracking.final HttpAsyncClientBuilderHttpAsyncClientBuilder.disableCookieManagement()Disables state (cookie) management.final HttpAsyncClientBuilderHttpAsyncClientBuilder.disableRedirectHandling()Disables automatic redirect handling.final HttpAsyncClientBuilderHttpAsyncClientBuilder.evictExpiredConnections()Makes this instance of HttpClient proactively evict expired connections from the connection pool using a background thread.final HttpAsyncClientBuilderHttpAsyncClientBuilder.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 HttpAsyncClientBuilderHttpAsyncClientBuilder.replaceExecInterceptor(String existing, AsyncExecChainHandler interceptor) Replace an existing interceptor with the given name with new interceptor.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setCharCodingConfig(org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) SetsCharCodingConfigconfiguration.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setConnectionManager(AsyncClientConnectionManager connManager) AssignsAsyncClientConnectionManagerinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setConnectionManagerShared(boolean shared) Defines the connection manager is to be shared by multiple client instances.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setConnectionReuseStrategy(org.apache.hc.core5.http.ConnectionReuseStrategy reuseStrategy) AssignsConnectionReuseStrategyinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setDefaultAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry) Assigns defaultAuthSchemeregistry which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setDefaultCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry) Assigns defaultCookieSpecregistry which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setDefaultCookieStore(CookieStore cookieStore) Assigns defaultCookieStoreinstance which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setDefaultCredentialsProvider(CredentialsProvider credentialsProvider) Assigns defaultCredentialsProviderinstance which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setDefaultHeaders(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders) Assigns default request header values.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setDefaultRequestConfig(RequestConfig config) Assigns defaultRequestConfiginstance which will be used for request execution if not explicitly set in the client execution context.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setH2Config(org.apache.hc.core5.http2.config.H2Config h2Config) SetsH2Configconfiguration.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setHttp1Config(org.apache.hc.core5.http.config.Http1Config h1Config) SetsHttp1Configconfiguration.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setIOReactorConfig(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig) SetsIOReactorConfigconfiguration.final HttpAsyncClientBuilderHttpAsyncClientBuilder.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 HttpAsyncClientBuilderHttpAsyncClientBuilder.setIoSessionDecorator(org.apache.hc.core5.function.Decorator<org.apache.hc.core5.reactor.IOSession> ioSessionDecorator) Sets theIOSessionDecoratorthat will be use with the client's IOReactor.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setIOSessionListener(org.apache.hc.core5.reactor.IOSessionListener ioSessionListener) SetsIOSessionListenerlistener.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setKeepAliveStrategy(ConnectionKeepAliveStrategy keepAliveStrategy) AssignsConnectionKeepAliveStrategyinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setProxy(org.apache.hc.core5.http.HttpHost proxy) Assigns default proxy value.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setProxyAuthenticationStrategy(AuthenticationStrategy proxyAuthStrategy) AssignsAuthenticationStrategyinstance for proxy authentication.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setProxySelector(ProxySelector proxySelector) Sets theProxySelectorthat will be used to select the proxies to be used for establishing HTTP connections.HttpAsyncClientBuilder.setRedirectStrategy(RedirectStrategy redirectStrategy) AssignsRedirectStrategyinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setRetryStrategy(HttpRequestRetryStrategy retryStrategy) AssignsHttpRequestRetryStrategyinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setRoutePlanner(HttpRoutePlanner routePlanner) AssignsHttpRoutePlannerinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setSchemePortResolver(SchemePortResolver schemePortResolver) AssignsSchemePortResolverinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setTargetAuthenticationStrategy(AuthenticationStrategy targetAuthStrategy) AssignsAuthenticationStrategyinstance for target host authentication.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setThreadFactory(ThreadFactory threadFactory) AssignsThreadFactoryinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setUserAgent(String userAgent) AssignsUser-Agentvalue.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setUserTokenHandler(UserTokenHandler userTokenHandler) AssignsUserTokenHandlerinstance.final HttpAsyncClientBuilderHttpAsyncClientBuilder.setVersionPolicy(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy) Deprecated.final HttpAsyncClientBuilderHttpAsyncClientBuilder.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 TypeClassDescriptionclassBuilder forCloseableHttpAsyncClientinstances capable of client-side caching.
TlsConfigand connection manager methods