Package org.mockserver.model
Class KeysAndValues<T extends KeyAndValue,K extends KeysAndValues>
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.KeysAndValues<T,K>
-
- Direct Known Subclasses:
Cookies
public abstract class KeysAndValues<T extends KeyAndValue,K extends KeysAndValues> extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description KeysAndValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build(NottableString name, NottableString value)
List<T>
getEntries()
boolean
isEmpty()
CaseInsensitiveRegexHashMap
toCaseInsensitiveRegexMultiMap()
CaseInsensitiveRegexHashMap
toCaseInsensitiveRegexMultiMap(List<T> entries)
K
withEntries(List<T> cookies)
K
withEntries(T... cookies)
K
withEntry(String name, String value)
K
withEntry(NottableString name, NottableString value)
K
withEntry(T cookie)
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Method Detail
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexHashMap toCaseInsensitiveRegexMultiMap(List<T> entries)
-
build
public abstract T build(NottableString name, NottableString value)
-
withEntry
public K withEntry(NottableString name, NottableString value)
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexHashMap toCaseInsensitiveRegexMultiMap()
-
isEmpty
public boolean isEmpty()
-
-