Package io.undertow.servlet.spec
Class ServletCookieAdaptor
java.lang.Object
io.undertow.servlet.spec.ServletCookieAdaptor
- All Implemented Interfaces:
io.undertow.server.handlers.Cookie
,Comparable
Adaptor between and undertow and a servlet cookie
- Author:
- Stuart Douglas, Richard Opalka
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final boolean
getName()
getPath()
getValue()
int
final int
hashCode()
boolean
boolean
boolean
boolean
isSecure()
io.undertow.server.handlers.Cookie
setComment
(String comment) io.undertow.server.handlers.Cookie
setDiscard
(boolean discard) io.undertow.server.handlers.Cookie
io.undertow.server.handlers.Cookie
setExpires
(Date expires) io.undertow.server.handlers.Cookie
setHttpOnly
(boolean httpOnly) io.undertow.server.handlers.Cookie
io.undertow.server.handlers.Cookie
io.undertow.server.handlers.Cookie
setSameSite
(boolean sameSite) io.undertow.server.handlers.Cookie
setSameSiteMode
(String mode) io.undertow.server.handlers.Cookie
setSecure
(boolean secure) io.undertow.server.handlers.Cookie
io.undertow.server.handlers.Cookie
setVersion
(int version) final String
toString()
-
Constructor Details
-
ServletCookieAdaptor
public ServletCookieAdaptor(javax.servlet.http.Cookie cookie)
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.undertow.server.handlers.Cookie
-
getValue
- Specified by:
getValue
in interfaceio.undertow.server.handlers.Cookie
-
setValue
- Specified by:
setValue
in interfaceio.undertow.server.handlers.Cookie
-
getPath
- Specified by:
getPath
in interfaceio.undertow.server.handlers.Cookie
-
setPath
- Specified by:
setPath
in interfaceio.undertow.server.handlers.Cookie
-
getDomain
- Specified by:
getDomain
in interfaceio.undertow.server.handlers.Cookie
-
setDomain
- Specified by:
setDomain
in interfaceio.undertow.server.handlers.Cookie
-
getMaxAge
- Specified by:
getMaxAge
in interfaceio.undertow.server.handlers.Cookie
-
setMaxAge
- Specified by:
setMaxAge
in interfaceio.undertow.server.handlers.Cookie
-
isDiscard
public boolean isDiscard()- Specified by:
isDiscard
in interfaceio.undertow.server.handlers.Cookie
-
setDiscard
public io.undertow.server.handlers.Cookie setDiscard(boolean discard) - Specified by:
setDiscard
in interfaceio.undertow.server.handlers.Cookie
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfaceio.undertow.server.handlers.Cookie
-
setSecure
public io.undertow.server.handlers.Cookie setSecure(boolean secure) - Specified by:
setSecure
in interfaceio.undertow.server.handlers.Cookie
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceio.undertow.server.handlers.Cookie
-
setVersion
public io.undertow.server.handlers.Cookie setVersion(int version) - Specified by:
setVersion
in interfaceio.undertow.server.handlers.Cookie
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnly
in interfaceio.undertow.server.handlers.Cookie
-
setHttpOnly
public io.undertow.server.handlers.Cookie setHttpOnly(boolean httpOnly) - Specified by:
setHttpOnly
in interfaceio.undertow.server.handlers.Cookie
-
getExpires
- Specified by:
getExpires
in interfaceio.undertow.server.handlers.Cookie
-
setExpires
- Specified by:
setExpires
in interfaceio.undertow.server.handlers.Cookie
-
getComment
- Specified by:
getComment
in interfaceio.undertow.server.handlers.Cookie
-
setComment
- Specified by:
setComment
in interfaceio.undertow.server.handlers.Cookie
-
isSameSite
public boolean isSameSite()- Specified by:
isSameSite
in interfaceio.undertow.server.handlers.Cookie
-
setSameSite
public io.undertow.server.handlers.Cookie setSameSite(boolean sameSite) - Specified by:
setSameSite
in interfaceio.undertow.server.handlers.Cookie
-
getSameSiteMode
- Specified by:
getSameSiteMode
in interfaceio.undertow.server.handlers.Cookie
-
setSameSiteMode
- Specified by:
setSameSiteMode
in interfaceio.undertow.server.handlers.Cookie
-
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Specified by:
compareTo
in interfaceio.undertow.server.handlers.Cookie
-
toString
-