Hi
On 10/05/16 15:21, Nicolas Lenoire wrote:
Hello,
Environment: CXF (JAXRS) 3.1.5 / JDK 1.7 / Windows 10
I'm trying to resolve query params of a templated URI. However, I'm
unable to achive this using the following approachs:
1)
String uri = UriBuilder.fromPath("my/path").queryParam("qp",
"{param}").resolveTemplate("param", "value").toTemplate();
=> The uri string is equal to "my/path?qp={param}" whereas it should be
"my/path?qp=value"
Sure, we'll have a look.
2)
String uri =
UriBuilder.fromUri("my/path?qp={param}").resolveTemplate("param",
"value").toTemplate();
=> The uri string is equal to "my/path%3Fqp=value" whereas it should be
"my/path?qp=value"
I'm not sure about this one, i.e, given a relative URI, should '?' be
interpreted as a query component separator ? Not sure yet...
Cheers, Sergey
Regards,
- NL
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/