users@jersey.java.net

[Jersey] UriBuilder and Templates

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Wed, 19 Nov 2014 10:56:41 -0800

I noticed that UriBuilder has a #toTemplate method. But it doesn't seem to
handle query parameters. Is this a bug? Is there any way to specify query
parameters as a template instead of as a URI with the query parameters
resolved?

For example, I would expect the query parameters surname and maxresults to
be templated as

"/users{?surname,maxresults}"