public class RequestUtil {
public static Map<String,Object> formatMap(Map<String,String[]> requestMap){
if(requestMap==null){
return null;
}
Iterator<Entry<String, String[]>> it = requestMap.entrySet().iterator();
Map map = new HashMap<String,Object>();
Entry<String, String[]> entry =null;
String value;
for(;it.hasNext();){
entry = it.next();
value = StringUtils.join(entry.getValue(),",");
map.put(entry.getKey(), value);
}
return map;
}
}