dev@jsr311.java.net

Re: URI Escaping and Unescaping

From: Dhanji R. Prasanna <dhanji_at_gmail.com>
Date: Wed, 27 Jun 2007 06:58:01 +1000

On 6/27/07, Marc Hadley <Marc.Hadley_at_sun.com> wrote:
>
> On Jun 25, 2007, at 6:32 PM, Dhanji R. Prasanna wrote:
>
> > without being explicit on each parameter (or overriding on each as
> > required). You can even declare @Decode on an entire type as a
> > shortcut.
> >
> Yes, that is more flexible. However, @Decode would switch the default
> (no annotation) from decoded to encoded and IMO we should default to
> automatic decoding. How about @Encoded instead, you can annotate a
> method or method parameter if you want to disable the automatic
> decoding of parameter values ?


+1. the uri template can declare a boolean method autoEncode=...

Dhanji.