Re: JSR311: form-urlencoded question

From: Bill Burke <>
Date: Thu, 27 Mar 2008 10:06:55 -0400

Paul Sandoz wrote:
> Bill Burke wrote:
>>> UriBuilder.queryParam encodes the value and name if the encode
>>> property is set to true, otherwise validates the value and name if
>>> set to false. If query keys are decoded but query values are not then
>>> it is hard to use UriBuilder.queryParam consistently with
>>> UriInfo.getQueryParameters(false).
>> Yeah, I guess you're right. My thought was, why would anybody ever
>> encode a key to access a specific value in the map? In general, I
>> don't see how these encoded maps would be very useful. Can you
>> provide a use case?
> There may be cases where both keys/values are stored in encoded form,
> say in a database or are passed to/from an API that requires such
> information in encoded form.

Thanks for the explanation. I'll shut up now.

Bill Burke
JBoss, a division of Red Hat