On Dec 17, 2014, at 9:21 AM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
> On 17/12/14 14:15, Bill Burke wrote:
>> Currently there is no way to pass information from a filter to a
>> resource. It would be cool if there was a method on
>> ContainerRequestContext (or something) that could register a value that
>> could be injected via @Context. For example:
>>
>> containerRequestContext.pushContext(IDToken.class, token);
>>
>>
>> @Path
>> public class Resource {
>> @Context IDToken token;
>> }
>>
> Sounds good
I will file a JIRA for this.
In a CDI world, it should be possible to achieve this type of communication between filters and resources using the right scope and producers; not the easiest but possible I think.
-- Santiago