users@jersey.java.net

Get Response in object provider

From: Alexander Chuprin <a.s.chuprin_at_gmail.com>
Date: Tue, 12 Oct 2010 17:10:15 +0400

Hello.

All my resource methods returns Response type. I want to add field to all
response enities depend in response status. I use MessageBodyWriter to json
serialization. I want to add field to json depends on response status. In
example i want to add success:true if my method returns
Response.ok(entity).build() but don't have response status in writeable
method.

Is there ways to add this logic?