Skip to main content

[jsr339-experts] Should we have Link.fromUriBuilder()

  • From: Jan Algermissen <jan.algermissen@...>
  • To: "jsr339-experts@..." <jsr339-experts@...>
  • Subject: [jsr339-experts] Should we have Link.fromUriBuilder()
  • Date: Mon, 12 Nov 2012 09:02:10 +0100


Links per design are URI-template aware, because we have a build(Object...) 
method.

I (seem to) be able to create links from resources and methods that have 
templates in their @Path

I can construct a Link from a URI template by calling: Link.fromUri(  
myUriBuilder.toTemplate() );

However, the latter requires an internal URI parse (because the template is a 
string).

Should we not have Link.fromUriBuilder( myUriBuilder)  to spare the parsing 
of the template from string?


Jan




[jsr339-experts] Should we have Link.fromUriBuilder()

Jan Algermissen 11/12/2012

[jsr339-experts] Re: [jax-rs-spec users] Should we have Link.fromUriBuilder()

Santiago Pericas-Geertsen 11/12/2012

[jsr339-experts] Re: [jax-rs-spec users] Should we have Link.fromUriBuilder()

Jan Algermissen 11/12/2012
 
 
Close
loading
Please Confirm
Close