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

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Fri, 15 Jun 2012 13:06:11 +0200

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
>