Skip to main content

[jsr339-experts] Link.fromResourceMethod

  • From: Jan Algermissen <jan.algermissen@...>
  • To: "jsr339-experts@..." <jsr339-experts@...>
  • Subject: [jsr339-experts] Link.fromResourceMethod
  • 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
                

[jsr339-experts] Link.fromResourceMethod

Jan Algermissen 11/12/2012

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

Santiago Pericas-Geertsen 11/12/2012
 
 
Close
loading
Please Confirm
Close