@NotThreadSafe public class DefaultApacheHttpClientBuilder extends Object implements ApacheHttpClientBuilder
限定符和类型 | 类和说明 |
---|---|
static class |
DefaultApacheHttpClientBuilder.IdleConnectionMonitorThread |
限定符和类型 | 方法和说明 |
---|---|
org.apache.http.impl.client.CloseableHttpClient |
build()
构建httpclient实例.
|
static DefaultApacheHttpClientBuilder |
get() |
DefaultApacheHttpClientBuilder.IdleConnectionMonitorThread |
getIdleConnectionMonitorThread() |
ApacheHttpClientBuilder |
httpProxyHost(String httpProxyHost)
代理服务器地址.
|
ApacheHttpClientBuilder |
httpProxyPassword(String httpProxyPassword)
代理服务器密码.
|
ApacheHttpClientBuilder |
httpProxyPort(int httpProxyPort)
代理服务器端口.
|
ApacheHttpClientBuilder |
httpProxyUsername(String httpProxyUsername)
代理服务器用户名.
|
ApacheHttpClientBuilder |
httpRequestRetryHandler(org.apache.http.client.HttpRequestRetryHandler httpRequestRetryHandler)
重试策略.
|
ApacheHttpClientBuilder |
keepAliveStrategy(org.apache.http.conn.ConnectionKeepAliveStrategy keepAliveStrategy)
超时时间.
|
ApacheHttpClientBuilder |
sslConnectionSocketFactory(org.apache.http.conn.ssl.SSLConnectionSocketFactory sslConnectionSocketFactory)
ssl连接socket工厂.
|
public static DefaultApacheHttpClientBuilder get()
public ApacheHttpClientBuilder httpProxyHost(String httpProxyHost)
ApacheHttpClientBuilder
httpProxyHost
在接口中 ApacheHttpClientBuilder
public ApacheHttpClientBuilder httpProxyPort(int httpProxyPort)
ApacheHttpClientBuilder
httpProxyPort
在接口中 ApacheHttpClientBuilder
public ApacheHttpClientBuilder httpProxyUsername(String httpProxyUsername)
ApacheHttpClientBuilder
httpProxyUsername
在接口中 ApacheHttpClientBuilder
public ApacheHttpClientBuilder httpProxyPassword(String httpProxyPassword)
ApacheHttpClientBuilder
httpProxyPassword
在接口中 ApacheHttpClientBuilder
public ApacheHttpClientBuilder httpRequestRetryHandler(org.apache.http.client.HttpRequestRetryHandler httpRequestRetryHandler)
ApacheHttpClientBuilder
public ApacheHttpClientBuilder keepAliveStrategy(org.apache.http.conn.ConnectionKeepAliveStrategy keepAliveStrategy)
ApacheHttpClientBuilder
keepAliveStrategy
在接口中 ApacheHttpClientBuilder
public ApacheHttpClientBuilder sslConnectionSocketFactory(org.apache.http.conn.ssl.SSLConnectionSocketFactory sslConnectionSocketFactory)
ApacheHttpClientBuilder
public DefaultApacheHttpClientBuilder.IdleConnectionMonitorThread getIdleConnectionMonitorThread()
public org.apache.http.impl.client.CloseableHttpClient build()
ApacheHttpClientBuilder
build
在接口中 ApacheHttpClientBuilder
Copyright © 2024. All rights reserved.