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

[jsr339-experts] Re: Uri annotation and absolute uri template

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 12 Feb 2013 16:58:07 +0000

On 12/02/13 16:52, Sergey Beryozkin wrote:
> Hi
>
> Uri documentation lists this example:
>
> @Uri("http://{audit-host}:{audit-port}/auditlogs/")
>
> What are the actual expectations here as far as the runtime is concerned
> ? Specifically, "{audit-host}" and "{audit-port}", where would these
> values come from ?
>

If the idea is that the above values will be replaced during the build
process then things are clear - if yes - please update the docs to make
it more obvious - I can open a JIRA for that

thanks, Sergey

> This example is for the case when "if not used from inside of a JAX-RS
> component class", say from ClientRequestFilter (a minor typo is in the
> docs btw, see 'RequestFilter' -> ClientRequestFilter)
>
> Things are clearer with the template var substitution if it is used from
> within a resource, as we have some context there...
>
> Thanks, Sergey
>
> [1]
> http://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/javax/ws/rs/Uri.html