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 Details

    • Cookies

      public Cookies()
  • Method Details

    • cookie

      public void cookie(Map<String,Object> singleCookie)
    • cookie

      public void cookie(String cookieKey, Object cookieValue)
    • executeForEachCookie

      public void executeForEachCookie(Consumer<Cookie> consumer)
    • matching

      public DslProperty matching(String value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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
    • getEntries

      public Set<Cookie> getEntries()
    • setEntries

      public void setEntries(Set<Cookie> entries)