users@jersey.java.net

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

From: Kobayashi Satoshi <satoshi-k_at_iij.ad.jp>
Date: Mon, 04 Apr 2011 11:53:56 +0900

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 <satoshi-k_at_iij.ad.jp>