Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to use instead of org.jboss.resteasy.client.ClientRequest?

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.

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 ?

like image 593
Torque Avatar asked Jan 22 '13 12:01

Torque


People also ask

What is JBoss RESTEasy?

RESTEasy is a JBoss / Red Hat project that provides various frameworks to help you build RESTful Web Services and RESTful Java applications. It is an implementation of the Jakarta RESTful Web Services, an Eclipse Foundation specification that provides a Java API for RESTful Web Services over the HTTP protocol.

What is RESTEasy client?

RESTeasy is a Java library that provides a simple interface to the REST server. It supports all of the features of the Jakarta REST Services and includes support for both synchronous and asynchronous communication. Firstly, there are really two ways to create a REST Client. Use Jakarta REST Client API.


1 Answers

The 3.0 beta documentation here describes these deprecations like so:

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

like image 136
Doug Porter Avatar answered Sep 28 '22 05:09

Doug Porter