[Jersey] Re: How about the access to the entity by Jersey Filter?

From: Pavel Bucek <>
Date: Thu, 07 Apr 2011 13:31:13 +0200

Hello Satoshi,

good question. I'm already investigating what can be improved - I have
first working implementation of setEntity method, needs some polishing
though. Will keep you updated.


On 04/04/2011 04:53 AM, Kobayashi Satoshi wrote:
> Hello
> I'm using Jersey in a project of my company.
> I like Jersey very much.
> but, I feel that a part of the Jersey Filter is inconvenient.
> because it is difficult to access to the entity of JavaBean form.
> I want often to rewrite it in preprocessing by using the Jersey Filter.
> ContainerRequestFilter can get the entity from ContainerRequest#getEntity(),
> but can't put again it because pairing ContainerRequest#setEntity()
> doesn't exist.
> If the marshaler is created or can be got in the filter,
> ContainerRequest#setEntityInputStream can be used?
> However, I think the method in which it is not good so much.
> Please tell if there is a good way.
> thanks!
> --
> Internet Initiative Japan Inc.
> Research & Development Section
> Product Development Department
> SEIL Business Unit
> Satoshi Kobayashi <>