Class Cookies
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.Cookies
-
public class Cookies extends Object
Represents a set of http cookies.- Since:
- 1.2.5
- Author:
- Alex Xandra Albert Sim
-
-
Constructor Summary
Constructors Constructor Description Cookies()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asStubSideMap()Converts the headers into their stub side representations and returns as a map of String key => Object value.Map<String,Object>asTestSideMap()Converts the headers into their stub side representations and returns as a map of String key => Object value.voidcookie(String cookieKey, Object cookieValue)voidcookie(Map<String,Object> singleCookie)booleanequals(Object o)voidexecuteForEachCookie(Consumer<Cookie> consumer)Set<Cookie>getEntries()inthashCode()DslPropertymatching(String value)voidsetEntries(Set<Cookie> entries)StringtoString()
-
-
-
Method Detail
-
matching
public DslProperty matching(String value)
-
asStubSideMap
public Map<String,Object> asStubSideMap()
Converts the headers into their stub side representations and returns as a map of String key => Object value.- Returns:
- converted map
-
asTestSideMap
public Map<String,Object> asTestSideMap()
Converts the headers into their stub side representations and returns as a map of String key => Object value.- Returns:
- converted map
-
-