users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Uri annotation and absolute uri template

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

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 ?

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