jrouter.servlet
类 RequestMap

java.lang.Object
  继承者 java.util.AbstractMap<String,String[]>
      继承者 jrouter.servlet.RequestMap
所有已实现的接口:
Serializable, Map<String,String[]>

@Dynamic
public class RequestMap
extends AbstractMap<String,String[]>
implements Serializable

A simple implementation of the Map interface to handle a collection of request parameters.

另请参见:
序列化表格

嵌套类摘要
 
从类 java.util.AbstractMap 继承的嵌套类/接口
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
从接口 java.util.Map 继承的嵌套类/接口
Map.Entry<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.
 
从类 java.util.AbstractMap 继承的方法
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
 
从类 java.lang.Object 继承的方法
finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

RequestMap

public RequestMap(javax.servlet.http.HttpServletRequest request)
Saves the request to use as the backing for getting and setting values

参数:
request - the http servlet request.
方法详细信息

clear

public void clear()
Removes all parameters from the request as well as clears entries in this map.

指定者:
接口 Map<String,String[]> 中的 clear
覆盖:
AbstractMap<String,String[]> 中的 clear

entrySet

public Set<Map.Entry<String,String[]>> entrySet()
Returns a Set of parameters from the http request.

指定者:
接口 Map<String,String[]> 中的 entrySet
指定者:
AbstractMap<String,String[]> 中的 entrySet
返回:
a Set of parameters from the http request.

get

public String[] get(Object key)
Returns the request parameter associated with the given key or null if it doesn't exist.

指定者:
接口 Map<String,String[]> 中的 get
覆盖:
AbstractMap<String,String[]> 中的 get
参数:
key - the name of the request parameter.
返回:
the request parameter or null if it doesn't exist.

put

public String[] put(String key,
                    String[] value)
Saves an parameter in the request.

指定者:
接口 Map<String,String[]> 中的 put
覆盖:
AbstractMap<String,String[]> 中的 put
参数:
key - the name of the request parameter.
value - the value to set.
返回:
the object that was just set.

remove

public String[] remove(Object key)
Removes the specified request parameter.

指定者:
接口 Map<String,String[]> 中的 remove
覆盖:
AbstractMap<String,String[]> 中的 remove
参数:
key - the name of the parameter to remove.
返回:
the value that was removed or null if the value was not found (and hence, not removed).


Copyright © 2017. All rights reserved.