[Bug 373162] add improved implementation for getParameterMap(), needs a test though and the existing setup doesn't seem like it would easily support the needed test so need to do that still
This commit is contained in:
parent
a7bc2b5863
commit
f434acd6ba
|
@ -27,6 +27,7 @@ import java.io.UnsupportedEncodingException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -460,7 +461,14 @@ public class MultiPartFilter implements Filter
|
|||
@Override
|
||||
public Map getParameterMap()
|
||||
{
|
||||
return Collections.unmodifiableMap(_params.toStringArrayMap());
|
||||
Map<String, String> cmap = new HashMap<String,String>();
|
||||
|
||||
for ( Object key : _params.keySet() )
|
||||
{
|
||||
cmap.put((String)key,getParameter((String)key));
|
||||
}
|
||||
|
||||
return Collections.unmodifiableMap(cmap);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue