@java.lang.SuppressWarnings({ "rawtypes", "unchecked" })
public class GrailsParameterMap
extends TypeConvertingMap
implements java.lang.Cloneable
A parameter map class that allows mixing of request parameters and controller parameters. If a controller parameter is set with the same name as a request parameter the controller parameter value is retrieved.
| Modifiers | Name | Description |
|---|---|---|
static java.lang.Object[] |
EMPTY_ARGS |
|
static java.lang.String |
REQUEST_BODY_PARSED |
Retained for binary compatibility. |
| Fields inherited from class | Fields |
|---|---|
class AbstractTypeConvertingMap |
wrappedMap |
| Constructor and description |
|---|
GrailsParameterMap(java.util.Map values, HttpServletRequest request)Does not populate the GrailsParameterMap from the request but instead uses the supplied values. |
GrailsParameterMap(HttpServletRequest request)Creates a GrailsParameterMap populating from the given request object |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addParametersFrom(GrailsParameterMap otherMap) |
|
public java.lang.Object |
clone() |
|
public java.lang.Object |
get(java.lang.Object key) |
|
public java.util.Date |
getDate(java.lang.String name)Obtains a date for the parameter name using the default format |
|
public java.lang.Object |
getIdentifier()
|
|
public HttpServletRequest |
getRequest()
|
|
public java.lang.Object |
put(java.lang.Object key, java.lang.Object value) |
|
public void |
putAll(java.util.Map map) |
|
public java.lang.Object |
remove(java.lang.Object key) |
|
public java.lang.String |
toQueryString()Converts this parameter map into a query String. |
|
protected void |
updateNestedKeys(java.util.Map keys) |
| Methods inherited from class | Name |
|---|---|
class TypeConvertingMap |
boolean, boolean, byte, byte, char, char, char, clone, double, double, float, float, int, int, long, long, short, short, string, string |
class AbstractTypeConvertingMap |
asBoolean, clear, containsKey, containsValue, date, date, date, entrySet, equals, equals, get, getBoolean, getBoolean, getByte, getByte, getChar, getChar, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getList, getLong, getLong, getShort, getShort, getString, getString, hashCode, isEmpty, keySet, list, put, putAll, remove, size, toString, values |
Retained for binary compatibility. Request-body parsing for form-encoded PUT, PATCH
and DELETE requests is now handled at the servlet layer by Spring's FormContentFilter
(registered by Boot's WebMvcAutoConfiguration), not by this map.
Does not populate the GrailsParameterMap from the request but instead uses the supplied values.
values - The values to populate withrequest - The request objectCreates a GrailsParameterMap populating from the given request object
request - The request objectObtains a date for the parameter name using the default format
name - The name of the parameter
Converts this parameter map into a query String. Note that this will flatten nested keys separating them with the . character and URL encode the result