users@jersey.java.net

[Jersey] Creating a new WebTarget from an existing one

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Wed, 16 Apr 2014 18:13:11 -0400

Hi,

In Jersey 1.0 we could create one WebResource from another as follows:

WebResource first = ...;
WebResource second = first.uri(newAddress);

Naturally, when a resource returns a link we want to construct a new
resource using the new link using the same Client. By removing support
for this very common use-case, you are forcing users to re-implement
this themselves over and over again in their code.

Why was this use-case removed in Jersey 2.0?

Thanks,
Gili