protected boolean buildProxy(String host, int port) {
return buildProxy(host, port, Proxy.Type.HTTP);
}
protected synchronized boolean buildProxy(String host, int port, Proxy.Type type) {
return proxyConfigs.add(new HttpProxyConfig(host.replaceAll("\\s+|\\xA0", ""), port, type));
}