【发布时间】:2014-05-27 05:25:36
【问题描述】:
我正在使用 apache apache-httpcomponents-httpcore.jar 和 apache-httpcomponents-httpclient.jar 4.1 版并遵循本教程 here,文章中明确表示它支持 HttpClient
这里:
1. SSLSocketFactory sf = new SSLSocketFactory(easyStrategy,SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
2. SchemeRegistry registry = new SchemeRegistry();
3. registry.register(new Scheme("https", 8443, sf));
4. ClientConnectionManager ccm = new ThreadSafeClientConnManager(registry);
5. client = new DefaultHttpClient(ccm);
在所有这些中,它都说constructoe是未定义的
【问题讨论】: