public class KeyValueList extends Object implements Iterable<KeyValueList.Entry>
Modifier and Type | Class and Description |
---|---|
static class |
KeyValueList.Entry |
Modifier and Type | Field and Description |
---|---|
static KeyValueList |
EMPTY |
Constructor and Description |
---|
KeyValueList(boolean caseSensitive) |
KeyValueList(int expectedSize,
boolean caseSensitive) |
KeyValueList(List<KeyValueList.Entry> entries,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
String value) |
void |
appendTo(StringBuilder builder) |
boolean |
contains(String key) |
void |
forEach(java.util.function.Consumer<? super KeyValueList.Entry> action) |
String |
get(String key) |
List<String> |
getAll(String param) |
List<KeyValueList.Entry> |
getHeaders() |
Iterator<KeyValueList.Entry> |
iterator() |
static KeyValueList |
parseUrlEncoded(String query,
boolean caseSensitive) |
int |
size() |
Spliterator<KeyValueList.Entry> |
spliterator() |
String |
toString() |
public static final KeyValueList EMPTY
public KeyValueList(int expectedSize, boolean caseSensitive)
public KeyValueList(boolean caseSensitive)
public KeyValueList(List<KeyValueList.Entry> entries, boolean caseSensitive)
public List<KeyValueList.Entry> getHeaders()
public Iterator<KeyValueList.Entry> iterator()
iterator
in interface Iterable<KeyValueList.Entry>
public void forEach(java.util.function.Consumer<? super KeyValueList.Entry> action)
forEach
in interface Iterable<KeyValueList.Entry>
public Spliterator<KeyValueList.Entry> spliterator()
spliterator
in interface Iterable<KeyValueList.Entry>
public void appendTo(StringBuilder builder)
public int size()
public static KeyValueList parseUrlEncoded(String query, boolean caseSensitive)
public boolean contains(String key)
Copyright © 2017. All Rights Reserved.