</properties>
*/
private void createAdapter(HTTPProxyDestination proxyDest)
{
// Create an adapter for the destination
HTTPProxyAdapter proxyAdapter = new HTTPProxyAdapter();
// Set adapter's id
proxyAdapter.setId("runtime-http-proxy");
// Set adapter's management property
proxyAdapter.setManaged(true);
// Set adapter's parent (which also sets destination's adapter)
proxyAdapter.setDestination(proxyDest);
// Alternatively, we could have set destination's adapter
//proxyDest.setAdapter(proxyAdapter);
// Set some adapter properties
proxyAdapter.setAllowLaxSSL(true);
int maxTotal = 100;
int defaultMaxConnsPerHost = 2;
HTTPConnectionManagerSettings connectionParams = new HTTPConnectionManagerSettings();
connectionParams.setMaxTotalConnections(maxTotal);
connectionParams.setDefaultMaxConnectionsPerHost(defaultMaxConnsPerHost);
proxyAdapter.setConnectionManagerSettings(connectionParams);
}