List of usage examples for org.apache.commons.httpclient HostConfiguration setParams
public void setParams(HostParams paramHostParams)
From source file:smartrics.rest.fitnesse.fixture.support.HttpClientBuilder.java
private void configureHost(final Config config, HttpClient client) { HostConfiguration hostConfiguration = client.getHostConfiguration(); String proxyHost = config.get("http.proxy.host"); if (proxyHost != null) { int proxyPort = config.getAsInteger("http.proxy.port", DEFAULT_PROXY_PORT); hostConfiguration.setProxy(proxyHost, proxyPort); }/*from w w w . j ava 2s. co m*/ HostParams hostParams = new HostParams(); hostConfiguration.setParams(hostParams); }