users@jsr311.java.net

Re: _at_Path encoding

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 20 Aug 2008 12:41:26 +0200

Reto Bachmann-Gmür wrote:
> Hello
>
> In 0.9 @Path had an "encode" field, for the *Param annotation the
> analogous field has been replaced with @Encoded but I don't see if and
> how this can be achieved for @Path.
>

In 0.10 we made the following changes:

1) The @Path "encoded" field is removed; and

2) Query/Uri/Matrix/FormParam names are contextually encoded [1].

@Encoded has not changed and does not replace what is removed in 1.
@Encoded only applies to parameter values.

Paul.

[1] https://jsr311.dev.java.net/nonav/releases/0.10/javax/ws/rs/Path.html

"The literal part of the supplied value (those characters that are not
part of a template parameter) is automatically percent encoded to
conform to the path production of RFC 3986 section 3.3. Note that
percent encoded values are allowed in the literal part of the value, an
implementation will recognize such values and will not double encode the
'%' character."

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109