ClientExecutor和ProxyFactory的替代方案

时间:2014-01-14 05:30:25

标签: java resteasy proxyfactory

此代码用于完美地用于RESTEasy。随着ProxyFactory和ClientExecutor的弃用,我需要选项。

PoolingClientConnectionManager connectionManager = new PoolingClientConnectionManager();
DefaultHttpClient httpClient = new DefaultHttpClient(connectionManager);
ClientExecutor clientExecutor = new ApacheHttpClient4Executor(httpClient);
MyClass client = ProxyFactory.create(MyClass.class, "http://localhost", clientExecutor);

0 个答案:

没有答案