Class HarCookie


  • public class HarCookie
    extends java.lang.Object
    Information about a cookie used in request and/or response.
    See Also:
    specification
    • Constructor Detail

      • HarCookie

        public HarCookie()
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        Name of the cookie, null if not present.
      • setName

        public void setName​(java.lang.String name)
      • getValue

        public java.lang.String getValue()
        Returns:
        Value of the cookie, null if not present.
      • setValue

        public void setValue​(java.lang.String value)
      • getPath

        public java.lang.String getPath()
        Returns:
        The cookie's path, null if not present.
      • setPath

        public void setPath​(java.lang.String path)
      • getDomain

        public java.lang.String getDomain()
        Returns:
        The cookie's domain, null if not present.
      • setDomain

        public void setDomain​(java.lang.String domain)
      • getExpires

        public java.util.Date getExpires()
        Returns:
        The cookie's expiration time, null if not present.
      • setExpires

        public void setExpires​(java.util.Date expires)
      • getHttpOnly

        public java.lang.Boolean getHttpOnly()
        Returns:
        Whether the cookie is HTTP only, null if not present.
      • setHttpOnly

        public void setHttpOnly​(java.lang.Boolean httpOnly)
      • getSecure

        public java.lang.Boolean getSecure()
        Returns:
        Whether the cookie was transmitted via SSL, null if not present.
      • setSecure

        public void setSecure​(java.lang.Boolean secure)
      • getComment

        public java.lang.String getComment()
        Returns:
        Comment provided by the user or application, null if not present.
      • setComment

        public void setComment​(java.lang.String comment)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object