HashMap toReturn = new HashMap();
IGetParameterDefinitionTask task = birtReportEngine.createGetParameterDefinitionTask(design);
Collection paramsColl = task.getParameterDefns(false);
Iterator it = paramsColl.iterator();
while (it.hasNext()) {
IScalarParameterDefn param = (IScalarParameterDefn) it.next();
String paramName = param.getName();
String paramValueString = request.getParameter(paramName);
paramValueString = decodeParameter(paramValueString);
if (paramValueString == null || paramValueString.trim().equals("")) {
logger.debug(this.getClass().getName() + "findReportParams() The report parameter " + paramName
+ " has no values set.");
continue;
//logger.debug(this.getClass().getName() + "findReportParams() The report parameter " + paramName
// + " has no values set. Gets default value.");
//paramValueString = param.getDefaultValue();
}
int paramType = param.getDataType();
/*
* The ParameterConverter converts a single value. Multi-value
* parameters are assumed to contains values that are String type.
* If they are not Strings (list of dates, list of numbers, ...) the
* converter will not work.