Problem is like uri.getQueryParameters() method is converting Character(+) into space which I am trying to avoid. Below is the uri before
"http://localhost:8081/service/linear/test/?id=test+QYY"
after
uri.getQueryParameters() will remove the + and it will replace with space
so the id now doesn't contains the + instead it contains the space as below
"http://localhost:8081/service/linear/test/?id=test QYY"
Notes - uri is a object of UriInfo which is defined by package javax.ws.rs.core
I know is a little late, but I found out in the same situation and I realized that the getQueryParameters is working right instead of getQueryParameter. In my case the char "+" in the Uri with the getQueryParameter let an empty space, and with the getQueryParameters works fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With