@Dynamic public class RequestMap extends AbstractMap<String,String[]> implements Serializable
Map interface to handle a collection of request
parameters.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
RequestMap(javax.servlet.http.HttpServletRequest request)
Saves the request to use as the backing for getting and setting values
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Removes all parameters from the request as well as clears entries in this map.
|
Set<Map.Entry<String,String[]>> |
entrySet()
Returns a Set of parameters from the http request.
|
String[] |
get(Object key)
Returns the request parameter associated with the given key or null if it doesn't
exist.
|
String[] |
put(String key,
String[] value)
Saves an parameter in the request.
|
String[] |
remove(Object key)
Removes the specified request parameter.
|
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuescompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic RequestMap(javax.servlet.http.HttpServletRequest request)
request - the http servlet request.public void clear()
public Set<Map.Entry<String,String[]>> entrySet()
public String[] get(Object key)
Copyright © 2020. All rights reserved.