public interface HttpComponentsClientBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.hc.client5.http.impl.classic.CloseableHttpClient |
build()
构建httpclient实例.
|
HttpComponentsClientBuilder |
httpProxyHost(String httpProxyHost)
代理服务器地址.
|
HttpComponentsClientBuilder |
httpProxyPassword(char[] httpProxyPassword)
代理服务器密码.
|
HttpComponentsClientBuilder |
httpProxyPort(int httpProxyPort)
代理服务器端口.
|
HttpComponentsClientBuilder |
httpProxyUsername(String httpProxyUsername)
代理服务器用户名.
|
HttpComponentsClientBuilder |
httpRequestRetryStrategy(org.apache.hc.client5.http.HttpRequestRetryStrategy httpRequestRetryStrategy)
重试策略.
|
HttpComponentsClientBuilder |
keepAliveStrategy(org.apache.hc.client5.http.ConnectionKeepAliveStrategy keepAliveStrategy)
超时时间.
|
org.apache.hc.client5.http.impl.classic.CloseableHttpClient build()
HttpComponentsClientBuilder httpProxyHost(String httpProxyHost)
HttpComponentsClientBuilder httpProxyPort(int httpProxyPort)
HttpComponentsClientBuilder httpProxyUsername(String httpProxyUsername)
HttpComponentsClientBuilder httpProxyPassword(char[] httpProxyPassword)
HttpComponentsClientBuilder httpRequestRetryStrategy(org.apache.hc.client5.http.HttpRequestRetryStrategy httpRequestRetryStrategy)
HttpComponentsClientBuilder keepAliveStrategy(org.apache.hc.client5.http.ConnectionKeepAliveStrategy keepAliveStrategy)
Copyright © 2026. All rights reserved.