org.apache.pivot.web
Class QueryDictionary
java.lang.Object
org.apache.pivot.web.QueryDictionary
- All Implemented Interfaces:
- Iterable<String>, org.apache.pivot.collections.Dictionary<String,String>
public final class QueryDictionary
- extends Object
- implements org.apache.pivot.collections.Dictionary<String,String>, Iterable<String>
Represents a collection of keyed data associated with a query. Allows
multiple values to be set against a given key.
| Nested classes/interfaces inherited from interface org.apache.pivot.collections.Dictionary |
org.apache.pivot.collections.Dictionary.Pair<K,V> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryDictionary
public QueryDictionary(boolean caseSensitiveKeys)
get
public String get(String key)
- Specified by:
get in interface org.apache.pivot.collections.Dictionary<String,String>
get
public String get(String key,
int index)
put
public String put(String key,
String value)
- Specified by:
put in interface org.apache.pivot.collections.Dictionary<String,String>
add
public int add(String key,
String value)
insert
public void insert(String key,
String value,
int index)
remove
public String remove(String key)
- Specified by:
remove in interface org.apache.pivot.collections.Dictionary<String,String>
remove
public String remove(String key,
int index)
clear
public void clear()
containsKey
public boolean containsKey(String key)
- Specified by:
containsKey in interface org.apache.pivot.collections.Dictionary<String,String>
getLength
public int getLength(String key)
iterator
public Iterator<String> iterator()
- Specified by:
iterator in interface Iterable<String>