Class Cookies


  • public class Cookies
    extends Object
    Represents a set of http cookies.
    Since:
    1.2.5
    Author:
    Alex Xandra Albert Sim
    • Constructor Detail

      • Cookies

        public Cookies()
    • Method Detail

      • cookie

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

        public void executeForEachCookie​(Consumer<Cookie> consumer)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode 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)