users@jersey.java.net

[Jersey] Link.fromPath Issue?

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Mon, 5 May 2014 13:26:20 -0700

Consider I have a Resource like so:

@Path("/user")
public class UserResource {
   @Path("{id}")
   @GET
   public User get() {
      ...
   }
}


Is it the intended behavior that Link.fromMethod(UserResource.class,
"get")would return (for example) "
http://localhost:9998/1" instead of "http://localhost:9998/user/1"?

Thanks!