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

查看:32
本文介绍了用什么来代替 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-RS2.0 相当于这些东西.

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天全站免登陆