Thanks, I can get the parameters now. However, I found the last parameter 
returned by getFirstValue() has additional parameter-related characters 
appended. Why? But it is ok if I get all parameters as a Set.

e.g., 
"http://localhost:3000/v1?parm1=value1&parm2=value2&parm3=value3";;

Form frm = request.getResourceRef().getQueryAsForm();

String sParm1 = frm.getFirstValue("parm1");
String sParm2 = frm.getFirstValue("parm2");
String sParm3 = frm.getFirstValue("parm3");

sParm3 becomes "value3/afile/log_test.txt"

Set<String> asName = frm.getNames();


Also, how can I pass special characters? like:

http://localhost:3000/v1?parm1=value1/ ? ; 
\\&'value1b&parm2=value2&parm3=value3"

I found spaces, ";" can be passed but not "&" (naturally). I have tried 
converting them to the usual meta charectars such as %20, %10 but they don't 
work

billy


Reply via email to