Map variable URI path fragments to method calls example
For example, lets say we wanted isbn to be a real object. We could do: @GET @Path("/book/{isbn}") public String getBook(@PathParam("isbn") ISBN id) {...} public class ISBN { public ISBN(String str) {...} } Or instead of a public String constructors, have a valueOf method: public class ISBN { public static ISBN valueOf(String isbn) {...} }