用什么代替org.jboss.resteasy.client.ClientRequest? [英] What to use instead of org.jboss.resteasy.client.ClientRequest?
问题描述
我刚发现 org.jboss.resteasy.client.ClientRequest
已被弃用,这使我在Google上找到的有关如何使用的所有内容无效RESTEasy
客户端。 Javadoc 没有说明使用什么。 Google同样保持沉默。
I just found that org.jboss.resteasy.client.ClientRequest
is deprecated, invalidating everything I could find on Google about how to use the RESTEasy
client. The Javadoc gives no indication as to what to use instead. Google is likewise silent.
我现在已经恢复到 2.3.5
,但会对答案感兴趣无论如何,以及如何在不问别人知道的情况下如何找到答案 - 是否有可以查看该信息的资源?
I have reverted to 2.3.5
for now, but would be interested in the answer anyways, as well as how one was supposed to find out the answer without asking someone else who knew - is there a resource with that information where I could have looked ?
推荐答案
3.0 beta文档这里描述了这些弃用:
The 3.0 beta documentation here describes these deprecations like so:
Resteasy手动客户端API,拦截器,StringConverters,
StringParamterConverters和Async HTTP API都已被弃用
,并且可能会在以后的版本中删除。现在每个东西都有一个JAX-RS
等价物。
Resteasy manual client API, interceptors, StringConverters, StringParamterConverters, and Async HTTP APIs have all been deprecated and will be removed possibly in a later release. There is now a JAX-RS 2.0 equivalent for each of these things.
这意味着首选方法将是使用这篇文章
This would imply that the preferred method will be to use the JAX-RS Client API described in this post
这篇关于用什么代替org.jboss.resteasy.client.ClientRequest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!