Class Cookie


public class Cookie extends CollectionElement
Encapsulates the cookie property of a Postman Collection.

Postman SDK analog: Cookie.

NOTE: Provided for serialization/de-serialization only, doesn't provide any method capability.

  • Constructor Details

    • Cookie

      public Cookie()
  • Method Details

    • getDomain

      public String getDomain()
      Returns:
      String
    • setDomain

      public void setDomain(String domain)
      Parameters:
      domain -
    • getExpires

      public String getExpires()
      Returns:
      String
    • setExpires

      public void setExpires(String expires)
      Parameters:
      expires -
    • getMaxAge

      public String getMaxAge()
      Returns:
      String
    • setMaxAge

      public void setMaxAge(String maxAge)
      Parameters:
      maxAge -
    • isHostOnly

      public boolean isHostOnly()
      Returns:
      boolean
    • setHostOnly

      public void setHostOnly(boolean hostOnly)
      Parameters:
      hostOnly -
    • isHttpOnly

      public boolean isHttpOnly()
      Returns:
      boolean
    • setHttpOnly

      public void setHttpOnly(boolean httpOnly)
      Parameters:
      httpOnly -
    • getName

      public String getName()
      Returns:
      String
    • setName

      public void setName(String name)
      Parameters:
      name -
    • getPath

      public String getPath()
      Returns:
      String
    • setPath

      public void setPath(String path)
      Parameters:
      path -
    • isSecure

      public boolean isSecure()
      Returns:
      boolean
    • setSecure

      public void setSecure(boolean secure)
      Parameters:
      secure -
    • isSession

      public boolean isSession()
      Returns:
      boolean
    • setSession

      public void setSession(boolean session)
      Parameters:
      session -
    • getValue

      public String getValue()
      Returns:
      String
    • setValue

      public void setValue(String value)
      Parameters:
      value -
    • getExtensions

      public PropertyList<Property> getExtensions()
      Returns:
      ArrayList<Property>
    • setExtensions

      public void setExtensions(PropertyList<Property> extensions)
      Parameters:
      extensions -
    • getKey

      public String getKey()
      Specified by:
      getKey in class CollectionElement
      Returns:
      String