users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: Filters and generic entities

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 13 May 2013 09:35:15 -0400

On 5/13/2013 9:31 AM, Sergey Beryozkin wrote:
> Hi Bill
> On 13/05/13 14:21, Bill Burke wrote:
>> What I mean is that either add those two methods, or change the
>> signature of getEntity() to GenericEntity getEntity(). Which I don't
>> think is possible because of backard compatibility?
>
> I think adding those 2 methods may be the right thing to do, it will
> make it consistent with the way the type info is presented by filter
> contexts. The only concern is that on the client side, I guess it is
> typical that the client code will call Response.readEntity, not
> getEntity(), but I guess these extra methods won't harm...
>
> In meantime I'm updating our code to unwrap GenericEntity in
> Response.getEntity().
>

I don't know about you, but I actually have those two methods in both my
server and client side implementations of Response already.

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com