users@jersey.java.net

[Jersey] Re: Need to modify the response entity / stream after marshalling happened

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Fri, 04 Nov 2011 15:58:21 +0100

Hi Han,

please see in lines...

On 3.11.2011 19:00, DaHoopster wrote:
> Hi Jakub,
>
> Thanks for the response. I think I was trying to avoid adding code to my
> already customized message body writer and hence I was looking at the

Understood.

> response filters. So is there a version of Jersey that has such filters that
> would be invoked after message body writers or if not, is there a plan to
> have such capabilities in the future?

The plan is not there yet. But depending on the demand for such a
feature, we might
considering adding such filters. Would you be possibly willing to
participate in implementing this?

On the filtering functionality itself: how would you need the filters to
work? Do you need to filter all responses
or you need to apply the filters to only certain entities? How would
decide what to filter in that case?
I.e. How would you like it to work? Resource->Filter mapping?
Media-type->Filter mapping?
Something else?


> If both answers are no, I will have to add more code then :-)
If you need to get the functionality quickly, you will probably end up
doing that anyways :-)

Thanks,

~Jakub

> Thanks,
> Han
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Need-to-modify-the-response-entity-stream-after-marshalling-happened-tp6942294p6959992.html
> Sent from the Jersey mailing list archive at Nabble.com.
>