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"

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"


Regards,
- NL


Reply via email to