Package com.browserup.harreader.model
Class HarCookie
- java.lang.Object
-
- com.browserup.harreader.model.HarCookie
-
public class HarCookie extends java.lang.ObjectInformation about a cookie used in request and/or response.- See Also:
- specification
-
-
Constructor Summary
Constructors Constructor Description HarCookie()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetComment()java.lang.StringgetDomain()java.util.DategetExpires()java.lang.BooleangetHttpOnly()java.lang.StringgetName()java.lang.StringgetPath()java.lang.BooleangetSecure()java.lang.StringgetValue()inthashCode()voidsetComment(java.lang.String comment)voidsetDomain(java.lang.String domain)voidsetExpires(java.util.Date expires)voidsetHttpOnly(java.lang.Boolean httpOnly)voidsetName(java.lang.String name)voidsetPath(java.lang.String path)voidsetSecure(java.lang.Boolean secure)voidsetValue(java.lang.String value)
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-