dev@jersey.java.net

feature bag in ResourceConfig and new options <was> Re: reducing double slash to a single slash (//->/) in http servlet request path info ? bug or feature ?

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Wed, 01 Aug 2007 14:00:00 +0200

On Tue, Jul 31, 2007 at 12:17:37PM +0200, Paul Sandoz wrote:
> IMHO i think we need to change things and modify the iface to return a
> r/o feature bag:
>
> public interface ResourceConfig {
> Set<Class> getResourceClasses();
>
> Map<String, Boolean> getFeatures();
> }

Attaching how it could look like.

>
> then we need to add relevant options to the APT tool and modify it to
> generate the correct ResourceConfig code and modify the runtime accordingly.

I suggest to have following options:

-Anoredir :
   no redirects to canonical URIs at all (however are they computed)
-Apreserveslashes :
   whenever a request is redirected and whatever method is used
   to compute the canonical URI, multiple slashes must be preserved

What do you think?

Thanks,

~Jakub