// so sockets get recycled when possible.
HttpClient httpClient = new HttpClient(localConnectionManager);
// the timeout value for allocation of connections from the pool
httpClient.getParams().setConnectionManagerTimeout(this.clientProperties.getConnectionPoolTimeout());
// Set our protocol factory, in case there's a redirect
ProtocolFactory myFactory = configInfo.getProtocolFactory();
if (myFactory != null)
httpClient.getParams().setParameter(org.apache.commons.httpclient.params.HttpClientParams.PROTOCOL_FACTORY,myFactory);
// Allow circular redirections
httpClient.getParams().setParameter(org.apache.commons.httpclient.params.HttpClientParams.ALLOW_CIRCULAR_REDIRECTS,new Boolean(true));