Package org.mockserver.model
Class Headers
-
public class Headers extends KeysToMultiValues<Header,Headers>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description Headers(com.google.common.collect.Multimap<NottableString,NottableString> headers)Headers(List<Header> headers)Headers(Header... headers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Headerbuild(NottableString name, Collection<NottableString> values)Headersclone()static Headersheaders(Header... headers)protected voidisModified()HeaderswithKeyMatchStyle(KeyMatchStyle keyMatchStyle)-
Methods inherited from class org.mockserver.model.KeysToMultiValues
containsEntry, containsEntry, equals, getEntries, getKeyMatchStyle, getMultimap, getValues, getValues, hashCode, isEmpty, keySet, remove, remove, replaceEntry, replaceEntry, replaceEntryIfExists, withEntries, withEntries, withEntries, withEntry, withEntry, withEntry, withEntry, withEntry
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode
-
-
-
-
Constructor Detail
-
Headers
public Headers(Header... headers)
-
Headers
public Headers(com.google.common.collect.Multimap<NottableString,NottableString> headers)
-
-
Method Detail
-
build
public Header build(NottableString name, Collection<NottableString> values)
- Specified by:
buildin classKeysToMultiValues<Header,Headers>
-
isModified
protected void isModified()
- Specified by:
isModifiedin classKeysToMultiValues<Header,Headers>
-
withKeyMatchStyle
public Headers withKeyMatchStyle(KeyMatchStyle keyMatchStyle)
- Overrides:
withKeyMatchStylein classKeysToMultiValues<Header,Headers>
-
clone
public Headers clone()
- Specified by:
clonein classKeysToMultiValues<Header,Headers>
-
-