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()
Map<NottableString,NottableString>
getMap()
boolean
isEmpty()
CaseInsensitiveRegexHashMap
toCaseInsensitiveRegexMultiMap(MockServerLogger mockServerLogger, boolean controlPlaneMatcher)
CaseInsensitiveRegexHashMap
toCaseInsensitiveRegexMultiMap(MockServerLogger mockServerLogger, List<T> entries, boolean controlPlaneMatcher)
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(MockServerLogger mockServerLogger, List<T> entries, boolean controlPlaneMatcher)
-
build
public abstract T build(NottableString name, NottableString value)
-
withEntry
public K withEntry(NottableString name, NottableString value)
-
getMap
public Map<NottableString,NottableString> getMap()
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexHashMap toCaseInsensitiveRegexMultiMap(MockServerLogger mockServerLogger, boolean controlPlaneMatcher)
-
isEmpty
public boolean isEmpty()
-
-