Package io.undertow.server.handlers
Class CookieImpl
- java.lang.Object
-
- io.undertow.server.handlers.CookieImpl
-
- All Implemented Interfaces:
Cookie
,java.lang.Comparable
public class CookieImpl extends java.lang.Object implements Cookie
- Author:
- Stuart Douglas, Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description CookieImpl(java.lang.String name)
CookieImpl(java.lang.String name, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object other)
boolean
equals(java.lang.Object other)
java.lang.String
getComment()
java.lang.String
getDomain()
java.util.Date
getExpires()
java.lang.Integer
getMaxAge()
java.lang.String
getName()
java.lang.String
getPath()
java.lang.String
getSameSiteMode()
java.lang.String
getValue()
int
getVersion()
int
hashCode()
boolean
isDiscard()
boolean
isHttpOnly()
boolean
isSameSite()
boolean
isSecure()
Cookie
setComment(java.lang.String comment)
CookieImpl
setDiscard(boolean discard)
CookieImpl
setDomain(java.lang.String domain)
CookieImpl
setExpires(java.util.Date expires)
CookieImpl
setHttpOnly(boolean httpOnly)
CookieImpl
setMaxAge(java.lang.Integer maxAge)
CookieImpl
setPath(java.lang.String path)
Cookie
setSameSite(boolean sameSite)
Cookie
setSameSiteMode(java.lang.String mode)
CookieImpl
setSecure(boolean secure)
CookieImpl
setValue(java.lang.String value)
CookieImpl
setVersion(int version)
java.lang.String
toString()
-
-
-
Method Detail
-
setValue
public CookieImpl setValue(java.lang.String value)
-
setPath
public CookieImpl setPath(java.lang.String path)
-
setDomain
public CookieImpl setDomain(java.lang.String domain)
-
setMaxAge
public CookieImpl setMaxAge(java.lang.Integer maxAge)
-
setDiscard
public CookieImpl setDiscard(boolean discard)
- Specified by:
setDiscard
in interfaceCookie
-
setSecure
public CookieImpl setSecure(boolean secure)
-
getVersion
public int getVersion()
- Specified by:
getVersion
in interfaceCookie
-
setVersion
public CookieImpl setVersion(int version)
- Specified by:
setVersion
in interfaceCookie
-
isHttpOnly
public boolean isHttpOnly()
- Specified by:
isHttpOnly
in interfaceCookie
-
setHttpOnly
public CookieImpl setHttpOnly(boolean httpOnly)
- Specified by:
setHttpOnly
in interfaceCookie
-
getExpires
public java.util.Date getExpires()
- Specified by:
getExpires
in interfaceCookie
-
setExpires
public CookieImpl setExpires(java.util.Date expires)
- Specified by:
setExpires
in interfaceCookie
-
getComment
public java.lang.String getComment()
- Specified by:
getComment
in interfaceCookie
-
setComment
public Cookie setComment(java.lang.String comment)
- Specified by:
setComment
in interfaceCookie
-
isSameSite
public boolean isSameSite()
- Specified by:
isSameSite
in interfaceCookie
-
setSameSite
public Cookie setSameSite(boolean sameSite)
- Specified by:
setSameSite
in interfaceCookie
-
getSameSiteMode
public java.lang.String getSameSiteMode()
- Specified by:
getSameSiteMode
in interfaceCookie
-
setSameSiteMode
public Cookie setSameSiteMode(java.lang.String mode)
- Specified by:
setSameSiteMode
in interfaceCookie
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public final int compareTo(java.lang.Object other)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-