I investigated this myself a bit further. There is a LinkBuilder class where
the buildURI method is called at some point. This method constructs a
UriBuilder based on the parameters passed in the @Ref annotation.
On this builder the buildFromMap method is called to fill in the values in
the place holders.
The builder is able, using the segment method, to encode slashes in a
parameter. So I think I need a way to specify that I want my {id}
placeholder value to be encoded like a segment. Maybe this can be done by
specifying a type in the placeholder. e.g. like this
{id[segment]}
What do you think ?
--
View this message in context: http://jersey.576304.n2.nabble.com/Declarative-Hyperlinking-and-a-slash-in-an-id-tp6908637p6909080.html
Sent from the Jersey mailing list archive at Nabble.com.