Class HttpClientBuilder
java.lang.Object
org.keycloak.connections.httpclient.HttpClientBuilder
Abstraction for creating HttpClients. Allows SSL configuration.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected KeyStore
protected String
protected int
protected long
protected TimeUnit
protected boolean
protected boolean
protected long
protected TimeUnit
protected boolean
protected long
protected TimeUnit
protected int
protected ProxyMappings
protected boolean
protected long
protected TimeUnit
protected SSLContext
protected KeyStore
protected HostnameVerifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.impl.client.CloseableHttpClient
build()
connectionPoolSize
(int connectionPoolSize) connectionTTL
(long ttl, TimeUnit unit) disableCookies
(boolean disable) Disable cookie management.Disable trust management and hostname verification.establishConnectionTimeout
(long timeout, TimeUnit unit) When trying to make an initial socket connection, what is the timeout?expectContinueEnabled
(boolean expectContinueEnabled) SSL policy used to verify hostnamesmaxConnectionIdleTime
(long maxConnectionIdleTime, TimeUnit unit) maxPooledPerRoute
(int maxPooledPerRoute) proxyMappings
(ProxyMappings proxyMappings) reuseConnections
(boolean reuseConnections) socketTimeout
(long timeout, TimeUnit unit) Socket inactivity timeoutsslContext
(SSLContext sslContext) trustStore
(KeyStore truststore)
-
Field Details
-
truststore
-
clientKeyStore
-
clientPrivateKeyPassword
-
disableTrustManager
protected boolean disableTrustManager -
policy
-
sslContext
-
connectionPoolSize
protected int connectionPoolSize -
maxPooledPerRoute
protected int maxPooledPerRoute -
connectionTTL
protected long connectionTTL -
reuseConnections
protected boolean reuseConnections -
connectionTTLUnit
-
maxConnectionIdleTime
protected long maxConnectionIdleTime -
maxConnectionIdleTimeUnit
-
verifier
-
socketTimeout
protected long socketTimeout -
socketTimeoutUnits
-
establishConnectionTimeout
protected long establishConnectionTimeout -
establishConnectionTimeoutUnits
-
disableCookies
protected boolean disableCookies -
proxyMappings
-
expectContinueEnabled
protected boolean expectContinueEnabled
-
-
Constructor Details
-
HttpClientBuilder
public HttpClientBuilder()
-
-
Method Details
-
socketTimeout
Socket inactivity timeout- Parameters:
timeout
-unit
-- Returns:
-
establishConnectionTimeout
When trying to make an initial socket connection, what is the timeout?- Parameters:
timeout
-unit
-- Returns:
-
connectionTTL
-
reuseConnections
-
maxConnectionIdleTime
-
maxPooledPerRoute
-
connectionPoolSize
-
disableTrustManager
Disable trust management and hostname verification. NOTE this is a security hole, so only set this option if you cannot or do not want to verify the identity of the host you are communicating with. -
disableCookies
Disable cookie management. -
hostnameVerification
SSL policy used to verify hostnames- Parameters:
policy
-- Returns:
-
sslContext
-
trustStore
-
keyStore
-
keyStore
-
proxyMappings
-
expectContinueEnabled
-
build
public org.apache.http.impl.client.CloseableHttpClient build()
-