jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Filters and generic entities

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Mon, 18 Mar 2013 17:13:51 +0000

Hi

What ContainerResponseFilter should return in getEntity(),
getEntityClass() and getEntityType(), when the application code uses
GenericEntity class ?

I'm thinking that GenericEntity needs to be 'unwrapped' by the filter
context implementation, but then if the filter implementation sets
"new GenericEntity..." then I guess it needs to get it back, in
getEntity(), so may be after all

getEntity(), getEntityClass() and getEntityType()

should return GenericEntity instance + GenericEntity.class ?

Thanks, Sergey