jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Re: properties back by HttpServletRequest attributes?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Fri, 15 Jun 2012 22:15:54 +0200

Done. See latest sources in the repository.

Marek
On Jun 15, 2012, at 1:06 PM, Marek Potociar wrote:

> Interesting idea and a good catch with HttpServletRequest. Again, can you please file (separate) issues if not done yet?
>
> Also, cannot recall - did we agree on how the properties will be exposed to the the resource? The previously introduced Request.getProperties() method was removed with the new filtering API changes. Should I add it back again?
>
> Marek
>
> On Jun 11, 2012, at 5:36 PM, Bill Burke wrote:
>
>> Just a thought...
>>
>> Instead of a property map, why not have interceptor/filter property be:
>>
>> Object getProperty(String name);
>> void setProperty(String name, Object value);
>> void removeProperty(String name;
>> Set<String> getPropertyNames();
>>
>>
>> And also require these properties be backed by HttpServletRequest when running in a servlet environment (server-side only not client framework). This would allow metadata to be passed to/from servlet filters, servlet request forwarding, and JAX-RS.
>>
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>>
>