[jax-rs-spec users] [jsr339-experts] Link.fromResourceMethod

From: Jan Algermissen <>
Date: Mon, 12 Nov 2012 08:47:49 +0100


I am doing this: (don't worry that it does not make sense - it is just test code)

public class CustomerResource {
 public Customer getCustomer() {

   Link li = Link.fromResourceMethod(CustomerResource.class, "getCustomer","edit").build("42");
   System.out.println("Link: " + li.toString());

This yields:

Link: <customer/%7Bid%7D>; rel="edit"

That is a bug, isn't it? It should be

Link: <customer/42>; rel="edit"