public class WebMap extends HashMap implements Map
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Test program for this class
|
Object |
put(String key,
String value)
Automatically converts
value into a List |
String |
toString()
Returns the data in url-encoded post string of format, for example:
|
static String |
URLDecode(String encodedString)
Decodes a MIME
x-www-form-urlencoded string |
static String |
URLEncode(String string)
Encodes a string using the
x-www-form-urlencoded
MIME format. |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic WebMap(String data)
data - name/value pairs encoded using the
x-www-form-urlencoded MIME
format. There may be more than one value
for the same name. For example,
"this=foo+bar&this=baz"public static String URLDecode(String encodedString)
x-www-form-urlencoded stringpublic static String URLEncode(String string)
x-www-form-urlencoded
MIME format.string - may have any special characters, including '/n'public String toString()
"this=that&this=other&foo=bar+biz&"
toString in class AbstractMappublic static void main(String[] args)