HttpConnectionPool
The HttpConnectionPool
is an HTTP/1.1 compliant HTTP agent implementation based on the Apache HTTP Client. It is, for example, used to connect to the NevisAgent
. It implements the org.apache.http.client.HttpClient
interface.
Configuration
Name | Type, usage constraints, defaults | Description |
---|---|---|
poolSize | optional: paraVal default: 8 type: integer | The size of the connection pool. |
sslSettings | optional: paraMap default: none type: string/string | The SSL configuration settings used for this connection pool. It uses the Java system property names to set up the key and trust stores. |
proxySettings | optional: paraMap default: none type: string/string | The proxy settings used for the HTTP connection. The following values have to be provided: http.proxyHost : The hostname of the proxy server; http.proxyPort : The port number of the proxy server. |
Example
Example configuring an SSL connection:
<object type="HttpConnectionPool" name="httpConnection">
<dp:paraMap name="sslSettings">
<value name="javax.net.ssl.trustStore" value="truststore.jks"/>
<value name="javax.net.ssl.trustStorePassword" value="secret"/>
<value name="javax.net.ssl.trustStoreType" value="jks"/>
<value name="javax.net.ssl.keyStore" value="keystore.jks"/>
<value name="javax.net.ssl.keyStorePassword" value="secret"/>
<value name="javax.net.ssl.keyStoreType" value="jks"/>
</dp:paraMap>
<dp:paraVal name="poolSize" value="10"/>
</object>
Example configuring of an HTTP proxy:
<object type="HttpConnectionPool" name="httpConnection">
<dp:paraMap name="proxySettings">
<value name="http.proxyHost" value="proxy.domain.com"/>
<value name="http.proxyPort" value="3128"/>
</dp:paraMap>
</object>