users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Request/Response.getEntity(...) and Request/ResponseBuilder.entity(...) should take annotations array argument

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Thu, 5 Jan 2012 10:57:59 +0200

Also ResponseBuilder.entity(...) does not interact with
MessageBodyWriter, right ? It's when Response is being processed the
annotations are provided by the runtime when looking for the matching
MBW and asking the selected one to write

Sergey

On 05/01/12 10:51, Sergey Beryozkin wrote:
> On 03/01/12 12:35, Marek Potociar wrote:
>> FYI: http://java.net/jira/browse/JAX_RS_SPEC-160
>>
>> The proposal is to add new method overloads to fix the issue.
>
> Looks reasonable, however, I'm wondering, how do you expect the calling
> code to obtain these annotations ?
> If we have a server application code working with Request then I can
> imagine how this can be done - though may be some clarifications are
> needed how to obtain such annotations in case of the annotation
> inheritance.
> But it is not quite clear to me how to retrieve the annotations in other
> cases
>
> Cheers, Sergey
>
>
>
>>
>> Marek