类 NativeHttpClientBuilder
java.lang.Object
io.github.wooenrico.http.URLConnection.NativeHttpClientBuilder
Builder for NativeHttpClient objects.
-
字段概要
字段修饰符和类型字段说明protected int
connectTimeout in millisecondsprotected HostnameVerifier
HostnameVerifierprotected Proxy
Proxyprotected int
readTimeout in millisecondsprotected SSLContext
SSLContext -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()
Builds a new NativeHttpClient.setConnectTimeout
(int connectTimeout) Sets the connectTimeout for the NativeHttpClient.setHostnameVerifier
(HostnameVerifier hostnameVerifier) Sets the HostnameVerifier for the NativeHttpClient.Sets the Proxy for the NativeHttpClient.setReadTimeout
(int readTimeout) Sets the readTimeout for the NativeHttpClient.setSslContext
(SSLContext sslContext) Sets the SSLContext for the NativeHttpClient.
-
字段详细资料
-
sslContext
SSLContext -
hostnameVerifier
HostnameVerifier -
proxy
Proxy -
connectTimeout
protected int connectTimeoutconnectTimeout in milliseconds -
readTimeout
protected int readTimeoutreadTimeout in milliseconds
-
-
构造器详细资料
-
NativeHttpClientBuilder
public NativeHttpClientBuilder()
-
-
方法详细资料
-
setSslContext
Sets the SSLContext for the NativeHttpClient.- 参数:
sslContext
- SSLContext- 返回:
- the builder
-
setHostnameVerifier
Sets the HostnameVerifier for the NativeHttpClient.- 参数:
hostnameVerifier
- HostnameVerifier- 返回:
- the builder
-
setProxy
Sets the Proxy for the NativeHttpClient.- 参数:
proxy
- Proxy- 返回:
- the builder
-
setConnectTimeout
Sets the connectTimeout for the NativeHttpClient.- 参数:
connectTimeout
- connectTimeout in milliseconds- 返回:
- the builder
-
setReadTimeout
Sets the readTimeout for the NativeHttpClient.- 参数:
readTimeout
- readTimeout in milliseconds- 返回:
- the builder
-
build
Builds a new NativeHttpClient.- 返回:
- a new NativeHttpClient
-