users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: HEADS-UP: Encoding values of UriBuilder template parameters

From: Markus KARG <markus_at_headcrashing.eu>
Date: Fri, 23 Dec 2011 17:06:16 +0100

Looks interesting and maybe is a better approach than to overload methods.
Just for clarity, can you please answer this:

If the current code's method is annotated with @Path("foo/{bar}") and I want
to do .path(Class, String).build("a/b/c") to get "foo/a%2Fb%2Fc", what do I
have to change in the code? Just writing {+bar} instead of {bar}? If that
would be true, this would be the best solution.

Regards
Markus

> -----Original Message-----
> From: Julian Reschke [mailto:julian.reschke_at_gmx.de]
> Sent: Freitag, 23. Dezember 2011 14:04
> To: jsr339-experts_at_jax-rs-spec.java.net
> Cc: Markus KARG
> Subject: Re: [jsr339-experts] Re: [jax-rs-spec users] Re: HEADS-UP:
> Encoding values of UriBuilder template parameters
>
> On 2011-12-23 13:43, Markus KARG wrote:
> > ...
> > Don't know how often I explained already on this list... ;-( ...
>
> Just a pointer... (I haven't read the whole thread so please ignore if
> what I'm saying is stupid).
>
> The URI template spec has different notations for these use cases, see
> <http://tools.ietf.org/html/draft-gregorio-uritemplate-07#section-
> 3.2.3>.
>
> Maybe that's applicable here?
>
> Best regards, Julian