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

[jsr339-experts] Link.fromResourceMethod

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

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