rulesList = QueryRuleUtil.fromRESTstring(URLDecoder.decode(request.getQueryString(), "UTF-8"));
}
// use 'post'
else
{
Tuple requestTuple = new HttpServletRequestTuple(request);
StringBuilder queryStringBuilder = new StringBuilder();
for (String name : requestTuple.getColNames())
{
queryStringBuilder.append(URLDecoder.decode(name, "UTF-8")).append('=');
queryStringBuilder.append(URLDecoder.decode(requestTuple.getString(name), "UTF-8"));
}
String queryString = queryStringBuilder.toString();
logger.debug("handle find query via http-post with parameters: " + queryString);
rulesList = QueryRuleUtil.fromRESTstring(queryString);
}