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

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

From: Jan Algermissen <jan.algermissen_at_nordsc.com>
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