Package org.mockserver.model
Class KeysToMultiValues<T extends KeyToMultiValue,K extends KeysToMultiValues>
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.KeysToMultiValues<T,K>
-
- Direct Known Subclasses:
Headers
,Parameters
public abstract class KeysToMultiValues<T extends KeyToMultiValue,K extends KeysToMultiValues> extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description KeysToMultiValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
build(NottableString name, Collection<NottableString> values)
boolean
containsEntry(String name)
boolean
containsEntry(String name, String value)
boolean
equals(Object o)
List<T>
getEntries()
com.google.common.collect.Multimap<NottableString,NottableString>
getMultimap()
List<String>
getValues(String name)
int
hashCode()
boolean
isEmpty()
K
remove(String name)
K
remove(NottableString name)
CaseInsensitiveRegexMultiMap
toCaseInsensitiveRegexMultiMap(MockServerLogger mockServerLogger, boolean controlPlaneMatcher)
K
withEntries(List<T> entries)
K
withEntries(Map<String,List<String>> entries)
K
withEntries(T... entries)
K
withEntry(String name, String... values)
K
withEntry(String name, List<String> values)
K
withEntry(NottableString name, List<NottableString> values)
K
withEntry(NottableString name, NottableString... values)
K
withEntry(T entry)
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode, key
-
-
-
-
Method Detail
-
build
public abstract T build(NottableString name, Collection<NottableString> values)
-
withEntries
@SafeVarargs public final K withEntries(T... entries)
-
withEntry
public K withEntry(NottableString name, List<NottableString> values)
-
withEntry
public K withEntry(NottableString name, NottableString... values)
-
remove
public K remove(NottableString name)
-
getMultimap
public com.google.common.collect.Multimap<NottableString,NottableString> getMultimap()
-
containsEntry
public boolean containsEntry(String name)
-
toCaseInsensitiveRegexMultiMap
public CaseInsensitiveRegexMultiMap toCaseInsensitiveRegexMultiMap(MockServerLogger mockServerLogger, boolean controlPlaneMatcher)
-
isEmpty
public boolean isEmpty()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObjectWithReflectiveEqualsHashCodeToString
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-