用什么代替org.jboss.resteasy.client.ClientRequest? [英] What to use instead of org.jboss.resteasy.client.ClientRequest?

查看:415
本文介绍了用什么代替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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆