Hi,
I am doing this: (don't worry that it does not make sense - it is just test code)
@Path("customer/{id}")
public class CustomerResource {
@GET
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"
Jan