* @throws SchedulerException when something went wrong.
*/
public JobDataMap createJobData(HttpServletRequest request)
throws SchedulerException {
log.debug("Creating job data map:");
JobDataMap map = super.createJobData(request);
Enumeration parameters = request.getParameterNames();
Map wrapperMap = new HashMap();
while (parameters.hasMoreElements()) {
String key = (String) parameters.nextElement();
Object value;
String[] values = request.getParameterValues(key);
if (values.length == 1) {
value = values[0];
}
else {
value = values;
}
wrapperMap.put(key, value);
}
map.putAll(stripPrefixes(wrapperMap));
return map;
}