users@jersey.java.net

[Jersey] UriInfo getQueryParameters removing some characters

From: Leonardo Helman <leonardo.helman_at_travelocity.com>
Date: Fri, 23 Sep 2011 16:09:26 -0300

Hi people, I'm trying to use a Jersey backend with a dojo frontend.

dojo, dojox.data.JsonRestStore/dojox.grid.EnhancedGrid, when you click
on a column to order the table, gives you something like:

URI/?sort(+field1,-field2)

I'm trying to use getQueryParameters (true/false, it does not change the
behaviour) to access the fields (and the ascending/descending char, plus
or minus).

The getQueryParameters changes the "+" by a space.

For example on this case:

http://xxxxx/yyyy/?sort(+amounterrors,-step)

getQueryParameters, returns:
sort( amounterrors,-step) => ""

Why the first "+" is removed?

Am I doing something wrong?
Is there any other way to retrieve this?

Thanks in advance
Saludos
LeoH