public static Map createParamMap ( PageContext pContext ) { final HttpServletRequest request = ( HttpServletRequest ) pContext . getRequest ( ) ; return new EnumeratedMap ( ) { public Enumeration enumerateKeys ( ) { return request . getParameterNames ( ) ; } public Object getValue ( Object pKey ) { if ( pKey instanceof String ) { return request . getParameter ( ( String ) pKey ) ; } else { return null ; } } public boolean isMutable ( ) { return false ; } } ; }
Creates the Map that maps parameter name to single parameter value .