org.mockserver.model
Class KeyAndValue

java.lang.Object
  extended by org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
      extended by org.mockserver.model.ObjectWithJsonToString
          extended by org.mockserver.model.KeyAndValue
Direct Known Subclasses:
Cookie

public class KeyAndValue
extends ObjectWithJsonToString

Author:
jamesdbloom

Field Summary
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
KeyAndValue(NottableString name, NottableString value)
           
KeyAndValue(String name, String value)
           
 
Method Summary
 NottableString getName()
           
 NottableString getValue()
           
static CaseInsensitiveRegexHashMap toHashMap(KeyAndValue... keyToMultiValues)
           
static CaseInsensitiveRegexHashMap toHashMap(List<? extends KeyAndValue> keyAndValue)
           
 
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
 
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyAndValue

public KeyAndValue(String name,
                   String value)

KeyAndValue

public KeyAndValue(NottableString name,
                   NottableString value)
Method Detail

toHashMap

public static CaseInsensitiveRegexHashMap toHashMap(List<? extends KeyAndValue> keyAndValue)

toHashMap

public static CaseInsensitiveRegexHashMap toHashMap(KeyAndValue... keyToMultiValues)

getName

public NottableString getName()

getValue

public NottableString getValue()


Copyright © 2016. All rights reserved.