users@jersey.java.net

[Jersey] UriBuilder does not properly encode query parameters?

From: Martynas Jusevi?ius <martynas_at_graphity.org>
Date: Wed, 21 Aug 2013 13:09:05 +0300

Hey all,

I'm passing URI as query parameter to UriBuilder:

  builder.queryParam("mode", "http://client.graphity.org/ontology#TableMode")

I expect it to get fully URI-encoded, but what I get instead is

  &mode=http://client.graphity.org/ontology%23TableMode

where slashes are left unencoded. I tried buildFromEncoded() as well,
but the result it the same.

Why this weird behavior and how can I work around it?

Martynas
graphityhq.com