Class BrowserCookie
- java.lang.Object
-
- ch.supertomcat.supertomcatutils.http.cookies.BrowserCookie
-
public class BrowserCookie extends Object
Browser Cookie
-
-
Constructor Summary
Constructors Constructor Description BrowserCookie()ConstructorBrowserCookie(String name, String value)ConstructorBrowserCookie(String name, String value, String domain, String path, boolean secure, boolean httpOnly, Instant creationDate, Instant expiryDate)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreationDate()Returns the creationDateStringgetDomain()Returns the domainInstantgetExpiryDate()Returns the expiryDateStringgetName()Returns the nameStringgetPath()Returns the pathStringgetValue()Returns the valuebooleanisHttpOnly()Returns the httpOnlybooleanisSecure()Returns the securevoidsetCreationDate(Instant creationDate)Sets the creationDatevoidsetDomain(String domain)Sets the domainvoidsetExpiryDate(Instant expiryDate)Sets the expiryDatevoidsetHttpOnly(boolean httpOnly)Sets the httpOnlyvoidsetName(String name)Sets the namevoidsetPath(String path)Sets the pathvoidsetSecure(boolean secure)Sets the securevoidsetValue(String value)Sets the value
-
-
-
Constructor Detail
-
BrowserCookie
public BrowserCookie()
Constructor
-
BrowserCookie
public BrowserCookie(String name, String value)
Constructor- Parameters:
name- Namevalue- Value
-
BrowserCookie
public BrowserCookie(String name, String value, String domain, String path, boolean secure, boolean httpOnly, Instant creationDate, Instant expiryDate)
Constructor- Parameters:
name- Namevalue- Valuedomain- Domainpath- Pathsecure- SecurehttpOnly- HTTP OnlycreationDate- Creation DateexpiryDate- Expiry Date
-
-
Method Detail
-
getName
public String getName()
Returns the name- Returns:
- name
-
setName
public void setName(String name)
Sets the name- Parameters:
name- name
-
getValue
public String getValue()
Returns the value- Returns:
- value
-
setValue
public void setValue(String value)
Sets the value- Parameters:
value- value
-
getDomain
public String getDomain()
Returns the domain- Returns:
- domain
-
setDomain
public void setDomain(String domain)
Sets the domain- Parameters:
domain- domain
-
getPath
public String getPath()
Returns the path- Returns:
- path
-
setPath
public void setPath(String path)
Sets the path- Parameters:
path- path
-
isSecure
public boolean isSecure()
Returns the secure- Returns:
- secure
-
setSecure
public void setSecure(boolean secure)
Sets the secure- Parameters:
secure- secure
-
isHttpOnly
public boolean isHttpOnly()
Returns the httpOnly- Returns:
- httpOnly
-
setHttpOnly
public void setHttpOnly(boolean httpOnly)
Sets the httpOnly- Parameters:
httpOnly- httpOnly
-
getCreationDate
public Instant getCreationDate()
Returns the creationDate- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(Instant creationDate)
Sets the creationDate- Parameters:
creationDate- creationDate
-
getExpiryDate
public Instant getExpiryDate()
Returns the expiryDate- Returns:
- expiryDate
-
setExpiryDate
public void setExpiryDate(Instant expiryDate)
Sets the expiryDate- Parameters:
expiryDate- expiryDate
-
-