public class QueryString extends TreeMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
QueryString() |
QueryString(Map<String,?> source) |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildHref(String href,
QueryString qs)
Build an href with query string.
|
static QueryString |
create(String query) |
String |
put(String key,
Object value) |
String |
toString() |
String |
toString(boolean canonical)
The canonicalized query string is formed by first sorting all the query
string parameters, then URI encoding both the key and value and then
joining them, in order, separating key value pairs with an '&'.
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmptyfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removepublic String toString()
toString in class AbstractMap<String,String>public String toString(boolean canonical)
canonical - whether or not the string should be canonicalizedpublic static QueryString create(String query)
public static String buildHref(String href, QueryString qs)
href - URL pathqs - query string to append to hrefCopyright © 2017 Okta. All rights reserved.