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

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


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